vscode-pigeon
This extension provides syntax highlighting for Pigeon parser generator files in Visual Studio Code.
Features
- Syntax highlighting for Pigeon grammar files (
.peg , .pigeon )
- Embedded Go code syntax highlighting within code blocks
- Support for all Pigeon operators and constructs:
- Rule definitions with various assignment operators (
<- , = , ← , ⟵ )
- String literals (double quotes, single quotes, backticks)
- Character classes and ranges
- Unicode escapes (
\uXXXX , \UXXXXXXXX )
- Unicode properties (
\pL , \p{Letter} , etc.)
- Quantifiers (
* , + , ? )
- Operators (
/ , ! , . , & , ^ )
- Labels
- Case-insensitive suffix (
i )
- Comments (line and block)
Installation (Manual)
- Clone this repository or download the files
- Copy the extension folder to your VS Code extensions directory:
- Windows:
%USERPROFILE%\.vscode\extensions
- macOS/Linux:
~/.vscode/extensions
- Reload VS Code
Usage
The extension automatically activates for files with .peg or .pigeon extensions.
License
This extension is released under the MIT License.
Credits
Based on the original Vim syntax file by Jason T. Bradshaw from pigeon.vim.
| |