mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-16 02:10:15 -04:00
Added the initial version for the support of rego language
This commit is contained in:
parent
0741d2282b
commit
00197398bd
2 changed files with 23 additions and 0 deletions
14
queries/rego/highlights.scm
Normal file
14
queries/rego/highlights.scm
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
; highlights.scm
|
||||
"import" @include
|
||||
"package" @include
|
||||
|
||||
|
||||
(reserved_keywords) @keyword
|
||||
(comment) @comment
|
||||
(rego_block rego_rule_name: (identifier) @function)
|
||||
(builtin_function function_name: (function_name) @function.builtin)
|
||||
(opening_parameter) @punctuation.bracket
|
||||
(closing_parameter) @punctuation.bracket
|
||||
(string_definition) @string
|
||||
(number) @number
|
||||
(operator) @operator
|
||||
Loading…
Add table
Add a link
Reference in a new issue