Seems to be a java binding at
https://github.com/serenadeai/java-tree-sitter .
There's a discussion of TreeSitter from Java at
https://github.com/tree-sitter/tree-sitter/issues/207. (The TreeSitter
developer isn't interested in supporting a Java Binding, he suggests
using JNI) Looks like there's a binding for JetBrains at
https://github.com/JetBrains/jsitter . There's some discussion on the
different features appropriate for LSP or TreeSitter at
https://news.ycombinator.com/item?id=18349488 .
A question I can't answer is about usability and technical quality of
TextMate vs TreeSitter, and whether or not there's movement towards one
and away from the other. And of course there's: does it even matter for
NB additional language support.
-ernie
On 11/20/2021 6:21 AM, Michael Bien wrote:
haven't heard of tree splitter before but it doesn't look like it has
a java API.
https://tree-sitter.github.io/tree-sitter/#language-bindings
which would mean its unlikely that it is used by a plugin.
-mbien
On 20.11.21 02:08, Ernie Rael wrote:
I've been wondering about TreeSitter and NB lately (in general, but
specifically about python support going forward). I just read this in
vim dev mailing list, it's at
https://github.com/vim/vim/issues/9087#issuecomment-974337876 and I'm
copying it here.
Is there, or has there been, any work on using TreeSitter from a plugin?
-ernie
Written by: fcurts
As someone who has spent months writing and maintaining TextMate and
tree-sitter grammars for real-world languages, let me tell you that
the TextMate grammar system is totally broken, at least from a 2021
perspective. TextMate grammars are a nightmare to maintain and
/impossible/ to get right. Out of desperation, I even developed my
own macro system (just like the authors of TypeScript's TextMate
grammar), and it was still a nightmare.
tree-sitter is in a completely different league. It's a top-notch
incremental parser that can be used for accurate (!) syntax
highlighting, code folding, code formatting, etc. tree-sitter
grammars are dramatically easier to write and maintain, and it's
actually possible to get them right. GitHub has been using
tree-sitter for a while, and VSCode is also starting to use it (see
https://github.com/microsoft/vscode-anycode).
Betting on TextMate grammars in 2021 would be an engineering crime.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists