An open API service indexing awesome lists of open source software.

https://github.com/futagoza/vsc-syntax-pegjs

Syntax highlighting for PEG.js in Visual Studio Code
https://github.com/futagoza/vsc-syntax-pegjs

extension pegcoffee pegjs syntax-highlighting vscode

Last synced: 4 months ago
JSON representation

Syntax highlighting for PEG.js in Visual Studio Code

Awesome Lists containing this project

README

          

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](https://github.com/SrTobi/code-pegjs-language) by [Tobias Kahlert](https://github.com/SrTobi), 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/joshpeng/Sublime-Babel-VSCode)
- [https://github.com/futagoza/Sublime-PEGjs](https://github.com/futagoza/Sublime-PEGjs), a fork of [https://github.com/telyn/Sublime-PEGjs](https://github.com/telyn/Sublime-PEGjs)
- [https://github.com/cx-lang/sublime-syntax/blob/master/pegjs.sublime-syntax](https://github.com/cx-lang/sublime-syntax/blob/master/pegjs.sublime-syntax)
- [https://github.com/pegjs/pegjs/blob/master/src/parser.pegjs](https://github.com/pegjs/pegjs/blob/master/src/parser.pegjs)

# links

- Marketplace: [https://marketplace.visualstudio.com/items?itemName=futagozaryuu.pegjs-syntax](https://marketplace.visualstudio.com/items?itemName=futagozaryuu.pegjs-syntax)
- PEG.js: [https://github.com/pegjs/pegjs](https://github.com/pegjs/pegjs)