Syntax highlighting

PRQL contains multiple grammar definitions to enable tools to highlight PRQL code. These are all intended to provide as good an experience as the grammar supports. Please raise any shortcomings in a GitHub issue.

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

While the pest grammar at prql-compiler/src/parser/prql.pest isn’t used for syntax highlighting, it’s the arbiter of truth given it currently powers the PRQL compiler.