Reverse Nix highlights queries

pull/10031/head
postsolar 2 months ago committed by Michael Davis
parent f0f7f3cc74
commit 917ada37df

@ -17,6 +17,18 @@
"with"
] @keyword
(variable_expression name: (identifier) @variable)
(select_expression
attrpath: (attrpath attr: (identifier)) @variable.other.member)
(apply_expression
function: [
(variable_expression name: (identifier) @function)
(select_expression
attrpath: (attrpath
attr: (identifier) @function .))])
((identifier) @variable.builtin
(#match? @variable.builtin "^(__currentSystem|__currentTime|__nixPath|__nixVersion|__storeDir|builtins)$")
(#is-not? local))
@ -59,28 +71,16 @@
name: (identifier) @variable.parameter
"?"? @punctuation.delimiter)
(select_expression
attrpath: (attrpath attr: (identifier)) @variable.other.member)
(interpolation
"${" @punctuation.special
"}" @punctuation.special) @embedded
(apply_expression
function: [
(variable_expression name: (identifier) @function)
(select_expression
attrpath: (attrpath
attr: (identifier) @function .))])
(unary_expression
operator: _ @operator)
(binary_expression
operator: _ @operator)
(variable_expression name: (identifier) @variable)
(binding
attrpath: (attrpath attr: (identifier)) @variable.other.member)
@ -109,4 +109,4 @@
"]"
"{"
"}"
] @punctuation.bracket
] @punctuation.bracket

Loading…
Cancel
Save