Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>LPG grammar syntax supportNew to Visual Studio Code? Get it now.
LPG grammar syntax support

LPG grammar syntax support

kuafuwang

|
116 installs
| (1) | Free
Language support for LPG grammar files
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

LPG-VScode README

lpg-vscode

The extension for LPG support in Visual Studio code.

Features

Syntax Coloring

  • Syntax coloring for LPG grammars (.lpg .g and .gi files)

Syntax Coloring

  • Comes with an own beautiful color theme, which not only includes all the recommended groups, but also some special rules for grammar elements that you won't find in other themes (e.g. alt labels and options). They are, immodestly, named Complete Dark and Complete Light.

Code Completion + Symbol Information

  • Code suggestions for all rule + optioins , etc. (including built-in ones).
  • Symbol type + location are shown on mouse hover. Navigate to any symbol with Ctrl/Cmd + Click. This works even for nested grammars.

completion

Grammar Validations

  • In the background syntax checking takes place, while typing. Also some semantic checks are done.

Doc formatting

Graphical-visualizations

  • Call graph for LPG grammars

Call graph

  • Terminal and non-terminal railroad graph for LPG grammars

Rule RailRoad

  • First set and follow set for LPG grammars

Parser-generation

More Informations

There are a number of documentation files for specific topics:

  • Extension Settings

Miscellaneous

  • It's the beta version.

Known Issues

See the Git issue tracker.

What's planned next?

Bug fixing and what feels appealing to hack on.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft