New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Editor support for vscode #107
Comments
Please add a pull request for this @Victorious3, so it gets included in the next release. It's the best way to gather help for finishing the work. |
We'd publish it right-away, with a caveat. |
I'm not sure how to include this into the project structure... |
Oh! It's not a single program file, but a complete VS project. We should mention it in the documentation, then. |
@Victorious3 does your proof of concept include a working language parser? I'm trying to generate an abstract syntax tree from a TatSu EBNF on the client-side (JavaScript). |
@FezVrasta No, I'm using the textmate grammar, its not a complete parser, only enough to provide syntax highlighting |
I thought I should post this here since the repo contains grammars for other editors, and it could be useful to someone.
I've written a vscode addon a while ago to support syntax highlighting and eventually autocompletion for symbols: https://github.com/Victorious3/vscode-TatSu
It is quite involved, but sadly unfinished since I discovered a glaring issue in vscode that makes writing it a complete pain.
Waiting for this PR: microsoft/vscode-languageserver-node#367
And this: microsoft/vscode#580
Apart from that, writing typescript is only marginally less annoying than writing Javascript so my motivation to enhance it is limited.
It's not on the Marketplace yet since its performance characteristics are a bit... questionable (due to the issue mentioned above, it parses the entire file on every edit) and its lacking support for goto symbol.
The text was updated successfully, but these errors were encountered: