Grammars / syntax highlighting

    The definitions are somewhat scattered around the codebase; this page serves as an index.

    • — used by CodeMirror editors. The PRQL file is at grammars/prql-lezer/README.me.

      • The website (outside of the book & playground):
    • Textmate — used by the VS Code extension. It’s in the repo in .


    Since the Elm language coincidentally provides syntax highlighting suitable for PRQL, it may look better to mark PRQL code as Elm when the above definition files are not available.

    For example, the following Markdown code block will be nicely highlighted on GitHub, Pandoc, and other Markdown renderers:

    • GitHub (Linguist):