Rob McGregor
Rob McGregor
Hey thanks for the info, Firstly I would be interested in helping to make this happen. It would be awesome to able to easily create language servers in python, and...
Just to be clear I'm talking about implementing [language-server-protocol](https://microsoft.github.io/language-server-protocol/) with python acting as the server. This is an editor agnostic json-rpc interface. Hence the vscode plugin part is super simple...
> > > > 1. a vscode plugin that knows how to use that API > > That is in theory what a LSP is for. This is quite simple...
I see, I was thinking that was up to the specfic language implementation as I'm not entirely sure how that could be done in a generic way. When implementing my...
Syntax highlighting is an interesting one. Vscode uses textmate grammers as it main highlighting engine and then supports additional semantic syntax highlighting via the language server protcol. I'm not sure...
> Lark has a simple interface for reporting syntax errors. It's somewhat limited, but it works in many situations. That's what Lark itself uses to report errors in the grammar....
I've create the example vscode language server extension. It uses the lark json error reporting example to provide json syntax errors on files with the `lark-json` language mode. Hopefully the...
I think it might be helpful to define an example DSL grammar (something with a little bit of complexly to make autocompletion interesting) and attempt to implement all our desired...
> I'm still not sure how to use it to provide definitions, or code folding, and if it can provide syntax highlighting or if that has to be done separately....