Any chance Adobe have done anything with tree-sitt...
# adobe
g
Any chance Adobe have done anything with tree-sitter for CF , this looks really promising and it would be nice to get ColdFusion support for it.. https://lapce.dev/
d
I use treesitter in neovim and oh how I would love if cfml had a real deal lsp.
g
treesitter? for cfml / cfscript ?
d
No. I wish.
@Gareth you like vim keybindings?
I don't think Adobe has shared how they built the Adobe Coldfusion Builder vscode extension which does the things you expect tree-sitter to do. Most languages now have a tree-sitter parser AND also have atleast one LSP. A tree-sitter parser is actually relatively easier to create than an LSP. http://tree-sitter.github.io/tree-sitter/creating-parsers So it wouldn't surprise me if Adobe actually is using tree-sitter. @Mark Takata (Adobe) does your vscode extension use tree-sitter. really curious about this.
m
Erm... no? I am honestly not sure. We do have a language server, running in Java, alongside the extension. I think there were plans to write out the documentation on the API which allows the two to communicate (in order to let community folks play with the language server) but with the alpha and holidays it has been kind of a chaos ball. I'll revisit the issue once we close alpha1 and have a moment to breath.
d
@Mark Takata (Adobe) perhaps someone in the LSP team can shed some light on it. Who do I ping?
m
I would assume the new ColdFusion Builder uses a similar parser as the CF compiler would instead of them having to rewrite one.
Atom used Tree-sitter for accurate and performant syntax highlighting. It's much better than the TextMate grammars VS Code uses, so there's been a lot of demand to add native support.
It would be fantastic if anyone did write a Tree-sitter grammar for CFML since there are many tools that use it.
d
Oh no doubt. I’ve considered it since I don’t have any cf plug-ins for neovim. It would be a project. the help page on their github seems easy enough to get started.
Check this out: maybe you’re up for it.

https://youtu.be/Jes3bD6P0To?t=19m30s

g
I branched the svelte one in attempt to make a super basic start on something for basic CFML / HTML parsing, but perhaps starting with something like PHP would be better ?
d
You can learn from all of them
😢 1