2023-03-03 20:12:37 +01:00
|
|
|
[
|
|
|
|
(keyword_from)
|
|
|
|
(keyword_filter)
|
|
|
|
(keyword_derive)
|
|
|
|
(keyword_group)
|
|
|
|
(keyword_aggregate)
|
|
|
|
(keyword_sort)
|
|
|
|
(keyword_take)
|
|
|
|
(keyword_window)
|
|
|
|
(keyword_join)
|
|
|
|
(keyword_select)
|
2023-07-28 23:01:06 +02:00
|
|
|
(keyword_case)
|
2023-03-03 20:12:37 +01:00
|
|
|
(keyword_append)
|
|
|
|
(keyword_remove)
|
|
|
|
(keyword_intersect)
|
|
|
|
(keyword_rolling)
|
|
|
|
(keyword_rows)
|
|
|
|
(keyword_expanding)
|
|
|
|
(keyword_let)
|
|
|
|
(keyword_prql)
|
|
|
|
(keyword_from_text)
|
2023-07-28 23:01:06 +02:00
|
|
|
(keyword_loop)
|
2023-03-03 20:12:37 +01:00
|
|
|
] @keyword
|
|
|
|
|
|
|
|
(literal) @string
|
|
|
|
|
|
|
|
(assignment
|
|
|
|
alias: (field) @variable.other.member)
|
|
|
|
|
|
|
|
alias: (identifier) @variable.other.member
|
|
|
|
|
|
|
|
(f_string) @string.special
|
|
|
|
(s_string) @string.special
|
|
|
|
|
|
|
|
(comment) @comment
|
|
|
|
|
|
|
|
(function_call
|
|
|
|
(identifier) @function)
|
|
|
|
|
|
|
|
[
|
|
|
|
"+"
|
|
|
|
"-"
|
|
|
|
"*"
|
|
|
|
"/"
|
|
|
|
"="
|
|
|
|
"=="
|
|
|
|
"<"
|
|
|
|
"<="
|
|
|
|
"!="
|
|
|
|
">="
|
|
|
|
">"
|
2023-07-28 23:01:06 +02:00
|
|
|
"&&"
|
|
|
|
"||"
|
|
|
|
"//"
|
|
|
|
"~="
|
2023-03-03 20:12:37 +01:00
|
|
|
(bang)
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
"("
|
|
|
|
")"
|
2023-07-28 23:01:06 +02:00
|
|
|
"{"
|
|
|
|
"}"
|
2023-03-03 20:12:37 +01:00
|
|
|
] @punctuation.bracket
|
|
|
|
|
|
|
|
[
|
|
|
|
","
|
|
|
|
"."
|
|
|
|
(pipe)
|
2023-07-28 23:01:06 +02:00
|
|
|
"->"
|
2023-03-03 20:12:37 +01:00
|
|
|
] @punctuation.delimiter
|
|
|
|
|
|
|
|
(literal
|
|
|
|
(integer) @constant.numeric.integer)
|
|
|
|
|
|
|
|
(integer) @constant.numeric.integer
|
|
|
|
|
|
|
|
(literal
|
|
|
|
(decimal_number) @constant.numeric.float)
|
|
|
|
|
|
|
|
(decimal_number) @constant.numeric.float
|
|
|
|
|
|
|
|
[
|
|
|
|
(keyword_min)
|
|
|
|
(keyword_max)
|
|
|
|
(keyword_count)
|
|
|
|
(keyword_count_distinct)
|
|
|
|
(keyword_average)
|
|
|
|
(keyword_avg)
|
|
|
|
(keyword_sum)
|
|
|
|
(keyword_stddev)
|
|
|
|
(keyword_count)
|
2023-07-28 23:01:06 +02:00
|
|
|
(keyword_lag)
|
|
|
|
(keyword_lead)
|
|
|
|
(keyword_first)
|
|
|
|
(keyword_last)
|
|
|
|
(keyword_rank)
|
|
|
|
(keyword_row_number)
|
|
|
|
(keyword_round)
|
|
|
|
(keyword_all)
|
|
|
|
(keyword_map)
|
2023-03-03 20:12:37 +01:00
|
|
|
] @function
|
|
|
|
|
|
|
|
[
|
|
|
|
(keyword_side)
|
|
|
|
(keyword_version)
|
|
|
|
(keyword_target)
|
|
|
|
(keyword_null)
|
|
|
|
(keyword_format)
|
|
|
|
] @attribute
|
|
|
|
|
|
|
|
(target) @function.builtin
|
|
|
|
|
|
|
|
[
|
|
|
|
(date)
|
|
|
|
(time)
|
|
|
|
(timestamp)
|
|
|
|
] @string.special
|
|
|
|
|
|
|
|
[
|
|
|
|
(keyword_left)
|
|
|
|
(keyword_inner)
|
|
|
|
(keyword_right)
|
|
|
|
(keyword_full)
|
|
|
|
(keyword_csv)
|
|
|
|
(keyword_json)
|
|
|
|
] @function.method
|
|
|
|
|
|
|
|
[
|
|
|
|
(keyword_true)
|
|
|
|
(keyword_false)
|
|
|
|
] @constant.builtin.boolean
|
|
|
|
|
|
|
|
(function_definition
|
2023-07-28 23:01:06 +02:00
|
|
|
(keyword_let)
|
2023-03-03 20:12:37 +01:00
|
|
|
name: (identifier) @function)
|
|
|
|
|
|
|
|
(parameter
|
|
|
|
(identifier) @variable.parameter)
|
|
|
|
|
|
|
|
(variable
|
|
|
|
(keyword_let)
|
|
|
|
name: (identifier) @constant)
|