Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/prql/highlights.scm')
| -rw-r--r-- | runtime/queries/prql/highlights.scm | 31 |
1 files changed, 12 insertions, 19 deletions
diff --git a/runtime/queries/prql/highlights.scm b/runtime/queries/prql/highlights.scm index 8b67487b..5cfedee4 100644 --- a/runtime/queries/prql/highlights.scm +++ b/runtime/queries/prql/highlights.scm @@ -9,7 +9,7 @@ (keyword_window) (keyword_join) (keyword_select) - (keyword_case) + (keyword_switch) (keyword_append) (keyword_remove) (keyword_intersect) @@ -19,7 +19,6 @@ (keyword_let) (keyword_prql) (keyword_from_text) - (keyword_loop) ] @keyword (literal) @string @@ -34,6 +33,8 @@ alias: (identifier) @variable.other.member (comment) @comment +(keyword_func) @keyword.function + (function_call (identifier) @function) @@ -49,25 +50,21 @@ alias: (identifier) @variable.other.member "!=" ">=" ">" - "&&" - "||" - "//" - "~=" + "->" (bang) ] @operator [ "(" ")" - "{" - "}" + "[" + "]" ] @punctuation.bracket [ "," "." (pipe) - "->" ] @punctuation.delimiter (literal @@ -90,15 +87,6 @@ alias: (identifier) @variable.other.member (keyword_sum) (keyword_stddev) (keyword_count) - (keyword_lag) - (keyword_lead) - (keyword_first) - (keyword_last) - (keyword_rank) - (keyword_row_number) - (keyword_round) - (keyword_all) - (keyword_map) ] @function [ @@ -131,8 +119,13 @@ alias: (identifier) @variable.other.member (keyword_false) ] @constant.builtin.boolean +[ + (keyword_and) + (keyword_or) +] @keyword.operator + (function_definition - (keyword_let) + (keyword_func) name: (identifier) @function) (parameter |