Skip to content

Latest commit

 

History

History
65 lines (38 loc) · 1.85 KB

README.md

File metadata and controls

65 lines (38 loc) · 1.85 KB

Peggy Language Support

Syntax highlighting and error reporting for Peggy in Visual Studio Code.

Install

See the Marketplace.

Preferences

  • peggyLanguageServer.consoleInfo [default: false]: Show info messages that don't have locations in the console. Examples include diagnostics about which compiler passes have been run. This is mostly useful for debugging the extension.
  • peggyLanguageServer.markInfo [default: true]: Mark all diagnostics, even merely informative ones. Some grammar compiler passes will give informative messages about optimizations. Those may be more annoying to you than helpful, depending on your approach to grammar writing.

Syntax Highlighting

Syntax Highlighting

Error Reporting

Errors in the grammar are highlighted.

Error Reporting

Go to / Peek Definition

Right-click a rule name, and go to its definition.

Go To Definition

Go to / Peek References

Right click a rule name, and see all of the places it is used.

Go To References

Rename Symbol

Rename a rule and all of the places that it is used.

Rename Symbol

Outline / Symbol Support

See the current rule in the breadcrumbs at the top of the editor, and a list of all of the rules in the Outline view.

Breadcrumbs

Outline

Contributing

Feel free to contribute to this extension here. Please read the CONTRIBUTING.md.

Origins

Based on code-pegjs-language by Tobias Kahlert