Closed nk9 closed 2 months ago
@nk9 Ah hadn't heard of that before. If I have time to nail down the grammar accurately (currently just throwing things together pretty ad hoc) and gracefully handle the edge cases that require an LSP/parser to support that sounds like an option. Also open to contributions if you/anyone are/is particularly familiar with building syntax grammars.
I spent a lot of effort getting tree-sitter-just working well and pretty thoroughly tested, I don’t know how similar the patterns are but maybe it could serve as a reference: https://github.com/IndianBoy42/tree-sitter-just
PR opened here: https://github.com/github-linguist/linguist/pull/6985.
Would you be interested in getting the syntax into a state that was sufficiently improved that it could be nominated for inclusion in GitHub Linguist? The current syntax has issues, and the work here would be in the same format, and thus potentially useable by Linguist. (Unfortunately, Linguist doesn't support the newst Sublime syntax, nor TreeSitter.)