Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Syntax highlighting #7

@ruuda

Description

@ruuda

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.)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions