| ▲ | tetris11 4 hours ago | |||||||
I love tree-sitter+eglot but a few of the languages/schemes I work in, simply don't have parsers:
Where's R, YAML, Golang, and several others? | ||||||||
| ▲ | jasonjmcghee 4 hours ago | parent | next [-] | |||||||
Most of them are in the language pack (https://github.com/Goldziher/tree-sitter-language-pack) For others, this is a sub optimal answer, but I’ve played with generating grammars with latest llms and they are surprisingly good at doing this (in a few shots). That being said, if you’re doing something more serious than syntax highlighting or shipping it in a product, you’ll want to spend more time on it. | ||||||||
| ▲ | johanvts 4 hours ago | parent | prev | next [-] | |||||||
Go is here: https://github.com/tree-sitter/tree-sitter-go Try google, the others are probably out there as well. | ||||||||
| ▲ | zokier 4 hours ago | parent | prev | next [-] | |||||||
https://tree-sitter.github.io/tree-sitter/#parsers https://github.com/tree-sitter/tree-sitter/wiki/List-of-pars... | ||||||||
| ▲ | matthew-craig 4 hours ago | parent | prev | next [-] | |||||||
In my emacs configuration, I have the following parsers installed: awk bash bibtex blueprint c c-sharp clojure cmake commonlisp cpp css dart dockerfile elixir glsl gleam go gomod heex html janet java javascript json julia kotlin latex lua magik make markdown nix nu org perl proto python r ruby rust scala sql surface toml tsx typescript typst verilog vhdl vue wast wat wgsl yaml | ||||||||
| ▲ | codethief 4 hours ago | parent | prev | next [-] | |||||||
Uhh… The fact that there's no Archlinux package for a given language doesn't imply there's no tree-sitter support (official or 3rd-party) for that language? See e.g. the very long list of languages on https://github.com/Goldziher/tree-sitter-language-pack , which does include R, YAML, Golang, and many more. | ||||||||
| ▲ | woodruffw 4 hours ago | parent | prev | next [-] | |||||||
tree-sitter-yaml definitely exists[1]. Presumably nobody has packaged it for Arch yet; that seems like a thing you could contribute. [1]: https://github.com/tree-sitter-grammars/tree-sitter-yaml | ||||||||
| ||||||||
| ▲ | taeric 4 hours ago | parent | prev [-] | |||||||
Odd, yaml-ts-mode exists? Did they change how it gets its parser? | ||||||||