nvim-treesitter/queries/prql/highlights.scm
Matthias Q 0572657d4d
feat: add prql (#4393)
* feat: add prql

* highlights(prql): null as constant.builtin

* highlights(prql): add missing kwd, update queries

* highlights(prql): remove redundant queries

* highlights(prql): make `->` a delimiter

* highlights(prql): instructions to `@method.call`
2023-03-01 15:21:11 -05:00

141 lines
1.6 KiB
Scheme

[
(keyword_from)
(keyword_filter)
(keyword_derive)
(keyword_group)
(keyword_aggregate)
(keyword_sort)
(keyword_take)
(keyword_window)
(keyword_join)
(keyword_select)
(keyword_switch)
(keyword_append)
(keyword_remove)
(keyword_intersect)
(keyword_rolling)
(keyword_rows)
(keyword_expanding)
(keyword_let)
(keyword_prql)
(keyword_from_text)
] @keyword
[
(literal)
(f_string)
(s_string)
] @string
(assignment
alias: (field) @field)
alias: (identifier) @field
(comment) @comment @spell
(keyword_func) @keyword.function
(function_call
(identifier) @function.call)
[
"+"
"-"
"*"
"/"
"="
"=="
"<"
"<="
"!="
">="
">"
(bang)
] @operator
[
"("
")"
"["
"]"
] @punctuation.bracket
[
","
"."
(pipe)
"->"
] @punctuation.delimiter
(integer) @number
(decimal_number) @float
[
(keyword_min)
(keyword_max)
(keyword_count)
(keyword_count_distinct)
(keyword_average)
(keyword_avg)
(keyword_sum)
(keyword_stddev)
(keyword_count)
] @function
[
(keyword_side)
(keyword_format)
] @attribute
[
(keyword_version)
(keyword_target)
] @type.qualifier
(target) @function.builtin
[
(date)
(time)
(timestamp)
] @string.special
[
(keyword_left)
(keyword_inner)
(keyword_right)
(keyword_full)
(keyword_csv)
(keyword_json)
] @method.call
[
(keyword_true)
(keyword_false)
] @boolean
[
(keyword_and)
(keyword_or)
(keyword_in)
] @keyword.operator
(function_definition
(keyword_func)
name: (identifier) @function)
(parameter
(identifier) @parameter)
(variable
(keyword_let)
name: (identifier) @constant)
(keyword_null) @constant.builtin