nushell / tree-sitter-nu

A tree-sitter grammar for nu-lang, the language of nushell
MIT License
97 stars 24 forks source link

Provide a sublime-syntax #111

Closed mrdgo closed 2 weeks ago

mrdgo commented 2 weeks ago

Probably fits more in here than general nushell.

There is bat, a cat (man 1 cat) clone with syntax highlighting capabilities. It uses the sublime syntax specification (manual), so we would support two new tools with one new implementation of nu's grammar. And maybe even more.

Just to keep this idea documented.

fdncred commented 2 weeks ago

There are already 2 sublime syntaxes listed here https://github.com/nushell/awesome-nu?tab=readme-ov-file#editor-extensions. I like the idea of having bat recognize nushell code though but I'm not sure it belongs in this repo?

mrdgo commented 2 weeks ago

I was unaware! Thanks for the pointer :)

Then I'll close this issue and create one in awesome-nu for tracking adding nu to bat