mirror of
https://github.com/ilyakooo0/helix.git
synced 2024-10-26 17:23:34 +03:00
feat: update prql parser (#7771)
This commit is contained in:
parent
9a4890f62b
commit
224fd5fa29
@ -2460,7 +2460,7 @@ indent = { tab-width = 4, unit = " " }
|
|||||||
|
|
||||||
[[grammar]]
|
[[grammar]]
|
||||||
name = "prql"
|
name = "prql"
|
||||||
source = { git = "https://github.com/PRQL/tree-sitter-prql", rev = "3f27cac466f030ee7d985d91eba5470e01dd21ea" }
|
source = { git = "https://github.com/PRQL/tree-sitter-prql", rev = "09e158cd3650581c0af4c49c2e5b10c4834c8646" }
|
||||||
|
|
||||||
[[language]]
|
[[language]]
|
||||||
name = "po"
|
name = "po"
|
||||||
|
@ -9,7 +9,7 @@
|
|||||||
(keyword_window)
|
(keyword_window)
|
||||||
(keyword_join)
|
(keyword_join)
|
||||||
(keyword_select)
|
(keyword_select)
|
||||||
(keyword_switch)
|
(keyword_case)
|
||||||
(keyword_append)
|
(keyword_append)
|
||||||
(keyword_remove)
|
(keyword_remove)
|
||||||
(keyword_intersect)
|
(keyword_intersect)
|
||||||
@ -19,6 +19,7 @@
|
|||||||
(keyword_let)
|
(keyword_let)
|
||||||
(keyword_prql)
|
(keyword_prql)
|
||||||
(keyword_from_text)
|
(keyword_from_text)
|
||||||
|
(keyword_loop)
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
(literal) @string
|
(literal) @string
|
||||||
@ -33,8 +34,6 @@
|
|||||||
|
|
||||||
(comment) @comment
|
(comment) @comment
|
||||||
|
|
||||||
(keyword_func) @keyword.function
|
|
||||||
|
|
||||||
(function_call
|
(function_call
|
||||||
(identifier) @function)
|
(identifier) @function)
|
||||||
|
|
||||||
@ -50,21 +49,25 @@
|
|||||||
"!="
|
"!="
|
||||||
">="
|
">="
|
||||||
">"
|
">"
|
||||||
"->"
|
"&&"
|
||||||
|
"||"
|
||||||
|
"//"
|
||||||
|
"~="
|
||||||
(bang)
|
(bang)
|
||||||
] @operator
|
] @operator
|
||||||
|
|
||||||
[
|
[
|
||||||
"("
|
"("
|
||||||
")"
|
")"
|
||||||
"["
|
"{"
|
||||||
"]"
|
"}"
|
||||||
] @punctuation.bracket
|
] @punctuation.bracket
|
||||||
|
|
||||||
[
|
[
|
||||||
","
|
","
|
||||||
"."
|
"."
|
||||||
(pipe)
|
(pipe)
|
||||||
|
"->"
|
||||||
] @punctuation.delimiter
|
] @punctuation.delimiter
|
||||||
|
|
||||||
(literal
|
(literal
|
||||||
@ -87,6 +90,15 @@
|
|||||||
(keyword_sum)
|
(keyword_sum)
|
||||||
(keyword_stddev)
|
(keyword_stddev)
|
||||||
(keyword_count)
|
(keyword_count)
|
||||||
|
(keyword_lag)
|
||||||
|
(keyword_lead)
|
||||||
|
(keyword_first)
|
||||||
|
(keyword_last)
|
||||||
|
(keyword_rank)
|
||||||
|
(keyword_row_number)
|
||||||
|
(keyword_round)
|
||||||
|
(keyword_all)
|
||||||
|
(keyword_map)
|
||||||
] @function
|
] @function
|
||||||
|
|
||||||
[
|
[
|
||||||
@ -119,13 +131,8 @@
|
|||||||
(keyword_false)
|
(keyword_false)
|
||||||
] @constant.builtin.boolean
|
] @constant.builtin.boolean
|
||||||
|
|
||||||
[
|
|
||||||
(keyword_and)
|
|
||||||
(keyword_or)
|
|
||||||
] @keyword.operator
|
|
||||||
|
|
||||||
(function_definition
|
(function_definition
|
||||||
(keyword_func)
|
(keyword_let)
|
||||||
name: (identifier) @function)
|
name: (identifier) @function)
|
||||||
|
|
||||||
(parameter
|
(parameter
|
||||||
|
Loading…
Reference in New Issue
Block a user