diff options
author | Philipp Mildenberger | 2022-01-06 02:04:55 +0000 |
---|---|---|
committer | GitHub | 2022-01-06 02:04:55 +0000 |
commit | 66afbc9fff1ec5947ea5718f7817887aa0c853c8 (patch) | |
tree | 908fc5816565b21c25bbfe22c48be3f452d12df2 | |
parent | 3e4f81547c679619c96d0a6477ebf1d3badfe661 (diff) |
Fix null and boolean constants in tree-sitter-nix highlights queries (#1428)
-rw-r--r-- | runtime/queries/nix/highlights.scm | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/runtime/queries/nix/highlights.scm b/runtime/queries/nix/highlights.scm index 66719e87..f6682065 100644 --- a/runtime/queries/nix/highlights.scm +++ b/runtime/queries/nix/highlights.scm @@ -13,7 +13,7 @@ ] @keyword ((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)) ((identifier) @function.builtin @@ -33,6 +33,11 @@ (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 (float) @constant.numeric.float |