Added the initial version for the support of rego language

This commit is contained in:
Oleksii Demennikov 2022-04-01 21:27:10 +03:00 committed by Stephan Seitz
parent 0741d2282b
commit 00197398bd
2 changed files with 23 additions and 0 deletions

View file

@ -49,6 +49,15 @@ list.javascript = {
maintainers = { "@steelsojka" },
}
list.rego = {
install_info = {
url = "https://github.com/FallenAngel97/tree-sitter-rego",
files = { "src/parser.c" },
},
maintainers = { '@FallenAngel97' },
filetype = 'rego',
}
list.c = {
install_info = {
url = "https://github.com/tree-sitter/tree-sitter-c",

View 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