Peggy Language SupportSyntax highlighting and error reporting for Peggy in Visual Studio Code. InstallSee the Marketplace. Preferences
Syntax HighlightingError ReportingErrors in the grammar are highlighted. Go to / Peek DefinitionRight-click a rule name, and go to its definition. Go to / Peek ReferencesRight click a rule name, and see all of the places it is used. Rename SymbolRename a rule and all of the places that it is used. Outline / Symbol SupportSee the current rule in the breadcrumbs at the top of the editor, and a list of all of the rules in the Outline view. Live PreviewLive edit and test your Grammars, optionally starting at the rule under cursor. Problem MatchersReport problems of your code in the Problems view when Configure them like the following in your
and in your
Then you can compile your grammar via the command palette with "Tasks: Run Task". See Task / VS Code Extension API for more details. TipsName your grammar like this for optimal experience: grammar_name.language_extension.peggy. Where language_extension is the extension of the language you're parsing. This will provide syntax highlighting if you have a matching language server installed. ContributingFeel free to contribute to this extension here. Please read the CONTRIBUTING.md. OriginsBased on code-pegjs-language by Tobias Kahlert |