package.json: implement an always-failing content-regex

This commit is contained in:
2023-07-04 22:30:27 +00:00
parent ae324c9905
commit d5adafbc03

View File

@@ -19,6 +19,7 @@
"tree-sitter": [ "tree-sitter": [
{ {
"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",
"injection-regex": "^(nix[-_]?shell)$", "injection-regex": "^(nix[-_]?shell)$",
"scope": "source.nix_shell" "scope": "source.nix_shell"
} }