Fix null and boolean constants in tree-sitter-nix highlights queries (#1428)
This commit is contained in:
parent
3e4f81547c
commit
66afbc9fff
1 changed files with 6 additions and 1 deletions
|
@ -13,7 +13,7 @@
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
((identifier) @variable.builtin
|
((identifier) @variable.builtin
|
||||||
(#match? @variable.builtin "^(__currentSystem|__currentTime|__nixPath|__nixVersion|__storeDir|builtins|false|null|true)$")
|
(#match? @variable.builtin "^(__currentSystem|__currentTime|__nixPath|__nixVersion|__storeDir|builtins)$")
|
||||||
(#is-not? local))
|
(#is-not? local))
|
||||||
|
|
||||||
((identifier) @function.builtin
|
((identifier) @function.builtin
|
||||||
|
@ -33,6 +33,11 @@
|
||||||
|
|
||||||
(uri) @string.special.uri
|
(uri) @string.special.uri
|
||||||
|
|
||||||
|
; boolean
|
||||||
|
((identifier) @constant.builtin.boolean (#match? @constant.builtin.boolean "^(true|false)$")) @constant.builtin.boolean
|
||||||
|
; null
|
||||||
|
((identifier) @constant.builtin (#eq? @constant.builtin "null")) @constant.builtin
|
||||||
|
|
||||||
(integer) @constant.numeric.integer
|
(integer) @constant.numeric.integer
|
||||||
(float) @constant.numeric.float
|
(float) @constant.numeric.float
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue