Files
tree-sitter-nix-shell/tree-sitter-nix-shell/tree-sitter.json

42 lines
1.1 KiB
JSON

{
"$schema": "https://tree-sitter.github.io/tree-sitter/assets/schemas/config.schema.json",
"grammars": [
{
"name": "nix_shell",
"camelcase": "NixShell",
"title": "NixShell",
"scope": "source.nix_shell",
"class-name": "TreeSitterNixShell",
"file-types": [ ],
"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)$",
"injections": [ "queries/injections.scm" ],
"highlights": [ "queries/highlights.scm" ]
}
],
"metadata": {
"version": "0.2.0",
"description": "understands languages encoded in #!nix-shell shebangs",
"authors": [
{
"name": "Colin",
"email": "colin@uninsane.org",
"url": "https://uninsane.org/"
}
],
"links": {
"repository": "https://git.uninsane.org/colin/tree-sitter-nix-shell"
}
},
"bindings": {
"c": true,
"go": true,
"node": true,
"python": true,
"rust": true,
"swift": true,
"zig": false
}
}