This is a tree-sitter parser for the Stan language. It can parse the latest Stan syntax.
This module defines grammars both for .stan files and .stanfunctions files. Require them as follows:
require('tree-sitter-stan').stan;
require('tree-sitter-stan').stanfunctions;tree-sitter-stan is available on npm:
npm i @wardbrian/tree-sitter-stanNote: The @wardbrian scope is necessary because the tree-sitter-stan package name is
already taken by a previous attempt by jrnold,
which this version is loosely based on.
See stan-ts-mode for Emacs 29+
This can be used with nvim-treesitter
I have a minimal Zed extension at https://github.com/WardBrian/zed-stan-extension