Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/nearley/highlights.scm')
| -rw-r--r-- | runtime/queries/nearley/highlights.scm | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/runtime/queries/nearley/highlights.scm b/runtime/queries/nearley/highlights.scm new file mode 100644 index 00000000..7cc0b6e4 --- /dev/null +++ b/runtime/queries/nearley/highlights.scm @@ -0,0 +1,43 @@ + +(comment) @comment.line + +(string) @string +(string "i" @keyword.modifier) + +(identifier) @variable.other +(rule_name (identifier) @function) +(rule (generic (identifier) @function)) + +(directive_name) @keyword.directive +(directive_value (identifier) @constant) +(directive_value (string) @string) + +(token) @constant + +(generic + "<" @punctuation.bracket + (identifier) @type.parameter + ">" @punctuation.bracket +) + +(group "(" @punctuation.bracket ")" @punctuation.bracket) + +(charset) @string.regexp +(wildcard) @keyword + +(quantifier) @function.builtin + +(macro_name + "[" @punctuation.bracket + (identifier) @variable.parameter + "]" @punctuation.bracket +) +(macro_arg) @variable.parameter + +(rule "->" @operator) +(rule_body "|" @operator) + +(cont_block "@{%" @keyword.directive "%}" @keyword.directive) +(cont_inline "{%" @keyword.directive "%}" @keyword.directive) + +(ifdef) @keyword.directive |