Files
tree-sitter-nix-shell/package.json
Colin ae324c9905 package.json: add first-line-regex
i made this more general than the embedded shebang detection

probably want to revisit the embedded shebangs to figure out if we even *want* that
2023-07-04 22:24:48 +00:00

27 lines
522 B
JSON

{
"name": "tree-sitter-nix-shell",
"version": "0.0.1",
"description": "nix-shell grammar for tree-sitter",
"main": "bindings/node",
"keywords": [
"parsing",
"incremental"
],
"dependencies": {
"nan": "^2.12.1"
},
"devDependencies": {
"tree-sitter-cli": "^0.20.8"
},
"scripts": {
"test": "tree-sitter test"
},
"tree-sitter": [
{
"first-line-regex": "^#!.*\\bnix-shell\\b.*$",
"injection-regex": "^(nix[-_]?shell)$",
"scope": "source.nix_shell"
}
]
}