enable minimal syntax highlighting

This commit is contained in:
2023-07-06 23:45:49 +00:00
parent e3736f7f1b
commit 27596798d6
2 changed files with 3 additions and 1 deletions

View File

@@ -21,7 +21,8 @@
"first-line-regex": "^#!.*\\bnix-shell\\b.*$", "first-line-regex": "^#!.*\\bnix-shell\\b.*$",
"content-regex": "^\b$nix-shell wraps other languages so intentionally fail against (and yield to) those other language matches", "content-regex": "^\b$nix-shell wraps other languages so intentionally fail against (and yield to) those other language matches",
"injection-regex": "^(nix[-_]?shell)$", "injection-regex": "^(nix[-_]?shell)$",
"scope": "source.nix_shell" "scope": "source.nix_shell",
"highlights": [ "queries/highlights.scm" ]
} }
] ]
} }

1
queries/highlights.scm Normal file
View File

@@ -0,0 +1 @@
(nix_shell_directive) @keyword