this will be a tree-sitter implementation for nix-shell files.

try one of the following:

  • nix build => build the parser
  • nix develop => manually/interactively generate the parser
    • tree-sitter generate

non-flake equivalents:

  • nix-build
  • nix-shell

99% of this repository is code-gen'd garbage. to recreate it or update it, follow this guide: https://tree-sitter.github.io/tree-sitter/creating-parsers

recording my steps here to maybe someday make this reproducible:

Description
parse #!/usr/bin/env nix-shell scripts with tree-sitter
Readme 62 KiB
Languages
JavaScript 30.1%
Nix 27.7%
Shell 16.2%
Scheme 12%
HTML 7.2%
Other 6.8%