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
- Host: GitHub
- URL: https://github.com/futagoza/vsc-syntax-pegjs
- Owner: futagoza
- License: mit
- Created: 2017-03-25T16:11:08.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2017-03-26T23:30:31.000Z (over 9 years ago)
- Last Synced: 2025-02-09T06:41:59.548Z (over 1 year ago)
- Topics: extension, pegcoffee, pegjs, syntax-highlighting, vscode
- Size: 16.6 KB
- Stars: 1
- Watchers: 2
- Forks: 2
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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)