aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/prql
diff options
context:
space:
mode:
authorMatthias Q2023-07-28 21:01:06 +0000
committerGitHub2023-07-28 21:01:06 +0000
commit224fd5fa29e43c5b2543ab791de5f46abe1ae8a7 (patch)
treefaa66410c916fa4f5c36bb84710adae0beb54c57 /runtime/queries/prql
parent9a4890f62bd907a37ee79e1a3690c75fc80e9724 (diff)
feat: update prql parser (#7771)
Diffstat (limited to 'runtime/queries/prql')
-rw-r--r--runtime/queries/prql/highlights.scm31
1 files changed, 19 insertions, 12 deletions
diff --git a/runtime/queries/prql/highlights.scm b/runtime/queries/prql/highlights.scm
index 5cfedee4..8b67487b 100644
--- a/runtime/queries/prql/highlights.scm
+++ b/runtime/queries/prql/highlights.scm
@@ -9,7 +9,7 @@
(keyword_window)
(keyword_join)
(keyword_select)
- (keyword_switch)
+ (keyword_case)
(keyword_append)
(keyword_remove)
(keyword_intersect)
@@ -19,6 +19,7 @@
(keyword_let)
(keyword_prql)
(keyword_from_text)
+ (keyword_loop)
] @keyword
(literal) @string
@@ -33,8 +34,6 @@ alias: (identifier) @variable.other.member
(comment) @comment
-(keyword_func) @keyword.function
-
(function_call
(identifier) @function)
@@ -50,21 +49,25 @@ alias: (identifier) @variable.other.member
"!="
">="
">"
- "->"
+ "&&"
+ "||"
+ "//"
+ "~="
(bang)
] @operator
[
"("
")"
- "["
- "]"
+ "{"
+ "}"
] @punctuation.bracket
[
","
"."
(pipe)
+ "->"
] @punctuation.delimiter
(literal
@@ -87,6 +90,15 @@ 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
[
@@ -119,13 +131,8 @@ alias: (identifier) @variable.other.member
(keyword_false)
] @constant.builtin.boolean
-[
- (keyword_and)
- (keyword_or)
-] @keyword.operator
-
(function_definition
- (keyword_func)
+ (keyword_let)
name: (identifier) @function)
(parameter