Skip to content
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

Added VS Code syntax highlighting for Beluga #238

Open
thesophiaxu opened this issue Mar 25, 2021 · 3 comments
Open

Added VS Code syntax highlighting for Beluga #238

thesophiaxu opened this issue Mar 25, 2021 · 3 comments
Labels
A | frontend related to the lexer or parser B | enhancement new features

Comments

@thesophiaxu
Copy link

thesophiaxu commented Mar 25, 2021

image
For people who want an editor from later than last century.

I've created the extension package (.vsix) file and I can give you guys the source code/package if anyone is interested.

@Ailrun
Copy link
Member

Ailrun commented Mar 25, 2021

Thanks for the issue! Any contribution is welcomed.

One concern is that, none of the maintainers use VScode so I'm not sure we have resource to maintain the extension.

@zlin888
Copy link

zlin888 commented Mar 29, 2021

Hi @thesophiaxu, I am quite interested in it! Could you share it with me? :)

@MartyO256
Copy link
Member

MartyO256 commented Jun 11, 2023

TextMate language grammars only support context-free languages, but Beluga and Harpoon are context-sensitive. That is, we could only reliably highlight the syntax for keywords and comments with a TextMate language grammar as shown in the screenshot.
If we want to fully implement syntax highlighting for Beluga and Harpoon in Visual Studio Code, we'll need to implement an extension with semantic highlighting as in this sample, and using the external syntax modules. The only LSP server implementation I know about written in OCaml is ocaml-lsp.

@MartyO256 MartyO256 added B | enhancement new features A | frontend related to the lexer or parser labels Jun 11, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A | frontend related to the lexer or parser B | enhancement new features
Projects
None yet
Development

No branches or pull requests

4 participants