expand injection-regex to handle more cases

docs describe this as "a regex pattern that will be tested against a *language name* in order to determine whether this language should be used for a potential *language injection* site."
This commit is contained in:
2023-07-04 22:10:29 +00:00
parent 8b2a63211d
commit 6e771f63b0

View File

@@ -18,7 +18,7 @@
}, },
"tree-sitter": [ "tree-sitter": [
{ {
"injection-regex": "^(nix-shell)$", "injection-regex": "^(nix[-_]?shell)$",
"scope": "source.nix_shell" "scope": "source.nix_shell"
} }
] ]