-
Couldn't load subscription status.
- Fork 5
Open
Labels
Description
It would be nice to have syntax highlighting for Pris source files.
Syntax details
A good starting point is the Bison grammar in etc/pris.y. The Pris parser uses a different implementation (in src/lexer.rs and src/parser.rs), but the two should be in sync. The Bison file is used to check that the grammar remains sensible. The tokens defined at the top, together with the string literals (for keywords and suffixes) are all the tokens, and those should be sufficient for syntax highlighting.
Formats
- Vim
- Kate
- Emacs
- TextMate
- Sublime Text (covered by TextMate?)
- GitHub Linguist (covered by TextMate?)
- Atom (similar to TextMate?)
- VS Code (preliminary version in etc/vscode)
- Pygments
I will take care of Vim and Kate myself when I find the time. (Vim is my editor of choice, and Pandoc — which powers my blog — uses highlighting-kate.)