VS Code extension for Lezer grammar support

I have published VS Code extension for Lezer grammar support.

https://marketplace.visualstudio.com/items?itemName=tamuratak.vscode-lezer

It supports

  • Syntax highlighting
  • Go to Definition
  • Find All references
  • Rename Symbol

I hope it would help Lezer’s development and its ecosystem.

2 Likes

Cool, thanks for sharing. I couldn’t find anything about how it works or how people would use it, though, so I didn’t really understand how it works.

It works as an extension for VS Code. After installing it from VS Code, it will be activated when opening a file with the suffix .grammar. Go to Definition, and other features are available through the context menu right-clicking the mouse on an identifier.

Ah, I see—that makes sense. Great job.