aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorfarwyler2022-12-19 23:40:08 +0000
committerGitHub2022-12-19 23:40:08 +0000
commita7146f58f00b7d15f584c630ca6e123793a0a051 (patch)
tree4c1fab1f93b1f52c2380288c03d098675703c47c
parent03baec8a2d83de59d7e8ada655022e4f81d1fa68 (diff)
Add missing comment injection for nix (#5208)
-rw-r--r--runtime/queries/nix/injections.scm3
1 files changed, 3 insertions, 0 deletions
diff --git a/runtime/queries/nix/injections.scm b/runtime/queries/nix/injections.scm
index 82d79cc7..a1a0ebb8 100644
--- a/runtime/queries/nix/injections.scm
+++ b/runtime/queries/nix/injections.scm
@@ -1,3 +1,6 @@
+((comment) @injection.content
+ (#set! injection.language "comment"))
+
; mark arbitary languages with a comment
((((comment) @injection.language) .
(indented_string_expression (string_fragment) @injection.content))