mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 19:30:02 -04:00
feat(rifleconf): add parser and queries
This commit is contained in:
parent
682d083292
commit
7aa24acae3
4 changed files with 56 additions and 0 deletions
31
runtime/queries/rifleconf/highlights.scm
Normal file
31
runtime/queries/rifleconf/highlights.scm
Normal file
|
|
@ -0,0 +1,31 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
","
|
||||
";"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"="
|
||||
(condition_negation)
|
||||
] @operator
|
||||
|
||||
; mark the string values for items interpreted as regex as string.regexp
|
||||
(binary_condition_expression
|
||||
(binary_condition_identifier) @_keyword
|
||||
(identifier) @string.regexp
|
||||
(#any-of? @_keyword "match" "ext" "mime" "name" "path"))
|
||||
|
||||
(binary_condition_identifier) @keyword
|
||||
|
||||
(unary_condition_identifier) @keyword
|
||||
|
||||
(condition_expression
|
||||
(binary_condition_expression
|
||||
(binary_condition_identifier) @keyword
|
||||
(identifier) @number)
|
||||
(#eq? @keyword "number"))
|
||||
|
||||
(ask) @function.builtin
|
||||
|
||||
(string) @string
|
||||
Loading…
Add table
Add a link
Reference in a new issue