aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Davis2023-01-09 13:30:57 +0000
committerBlaž Hrastnik2023-03-14 01:56:49 +0000
commitfb4d703b9f8a2bded013d76f1a5e026519339ea4 (patch)
tree36fc58c424e4bbb1508027ef5955b75623af23c2
parentcdd6c8d91e7b29e9587babce5919af800400f28d (diff)
Update Nix highlights
* Switch nix grammar repository location to the new repo. The author has transferred the repository to 'nix-community'. * Capture ':' and '...' as 'punctuation.delimiter'.
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/nix/highlights.scm2
2 files changed, 3 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index 2e6f5f95..5afd36c9 100644
--- a/languages.toml
+++ b/languages.toml
@@ -591,7 +591,7 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "nix"
-source = { git = "https://github.com/cstrahan/tree-sitter-nix", rev = "6b71a810c0acd49b980c50fc79092561f7cee307" }
+source = { git = "https://github.com/nix-community/tree-sitter-nix", rev = "6b71a810c0acd49b980c50fc79092561f7cee307" }
[[language]]
name = "ruby"
diff --git a/runtime/queries/nix/highlights.scm b/runtime/queries/nix/highlights.scm
index ce8e3c1a..a998aa64 100644
--- a/runtime/queries/nix/highlights.scm
+++ b/runtime/queries/nix/highlights.scm
@@ -95,6 +95,8 @@
"."
","
"="
+ ":"
+ (ellipses)
] @punctuation.delimiter
[