Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>PEG.js SyntaxNew to Visual Studio Code? Get it now.
PEG.js Syntax

PEG.js Syntax

Futago-za Ryuu

|
5,437 installs
| (2) | Free
Syntax highlighting for PEG.js in Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

An extension for VS Code that provides syntax highlighting for PEG.js and some of its variants.

features

  • .peg-grammar for PEG.js grammar files that don't do syntax highlighting for initializer blocks.
  • .pegjs for grammar files with JavaScript (ES6+) based initializer blocks.
  • .pegcoffee for grammar files with CoffeeScript based initializer blocks.

about

The orignal syntax template was based on https://github.com/SrTobi/code-pegjs-language by Tobias Kahlert, but after the initial draft (not to mention learning more about VS Code Extensions and the Visual Studio Marketplace 😄) I rewrote it and added more syntax templates, based on:

  • https://github.com/joshpeng/Sublime-Babel-VSCode
  • https://github.com/futagoza/Sublime-PEGjs, a fork of https://github.com/telyn/Sublime-PEGjs
  • https://github.com/cx-lang/sublime-syntax/blob/master/pegjs.sublime-syntax
  • https://github.com/pegjs/pegjs/blob/master/src/parser.pegjs

links

  • Marketplace: https://marketplace.visualstudio.com/items?itemName=futagozaryuu.pegjs-syntax
  • PEG.js: https://github.com/pegjs/pegjs
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft