mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 03:40:04 -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
|
|
@ -49,6 +49,15 @@ list.javascript = {
|
||||||
maintainers = { "@steelsojka" },
|
maintainers = { "@steelsojka" },
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.rego = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/FallenAngel97/tree-sitter-rego",
|
||||||
|
files = { "src/parser.c" },
|
||||||
|
},
|
||||||
|
maintainers = { '@FallenAngel97' },
|
||||||
|
filetype = 'rego',
|
||||||
|
}
|
||||||
|
|
||||||
list.c = {
|
list.c = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/tree-sitter/tree-sitter-c",
|
url = "https://github.com/tree-sitter/tree-sitter-c",
|
||||||
|
|
|
||||||
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