mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
310f0925ec
commit
692b051b09
1247 changed files with 6096 additions and 9074 deletions
9
runtime/queries/meson/folds.scm
Normal file
9
runtime/queries/meson/folds.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
(normal_command)
|
||||
(if_condition)
|
||||
(if_command)
|
||||
(else_command)
|
||||
(elseif_command)
|
||||
(foreach_command)
|
||||
(list)
|
||||
] @fold
|
||||
77
runtime/queries/meson/highlights.scm
Normal file
77
runtime/queries/meson/highlights.scm
Normal file
|
|
@ -0,0 +1,77 @@
|
|||
(comment) @comment @spell
|
||||
|
||||
(number) @number
|
||||
|
||||
(bool) @boolean
|
||||
|
||||
(identifier) @variable
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
"{"
|
||||
"}"
|
||||
"["
|
||||
"]"
|
||||
] @punctuation.bracket
|
||||
|
||||
[
|
||||
":"
|
||||
","
|
||||
"."
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"and"
|
||||
"not"
|
||||
"or"
|
||||
"in"
|
||||
] @keyword.operator
|
||||
|
||||
[
|
||||
"="
|
||||
"=="
|
||||
"!="
|
||||
"+"
|
||||
"/"
|
||||
"/="
|
||||
"+="
|
||||
"-="
|
||||
">"
|
||||
">="
|
||||
] @operator
|
||||
|
||||
(ternaryoperator
|
||||
[
|
||||
"?"
|
||||
":"
|
||||
] @keyword.conditional.ternary)
|
||||
|
||||
[
|
||||
"if"
|
||||
"elif"
|
||||
"else"
|
||||
"endif"
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"foreach"
|
||||
"endforeach"
|
||||
(keyword_break)
|
||||
(keyword_continue)
|
||||
] @keyword.repeat
|
||||
|
||||
(string) @string
|
||||
|
||||
"@" @punctuation.special
|
||||
|
||||
(normal_command
|
||||
command: (identifier) @function)
|
||||
|
||||
(pair
|
||||
key: (identifier) @property)
|
||||
|
||||
(escape_sequence) @string.escape
|
||||
|
||||
((identifier) @variable.builtin
|
||||
(#any-of? @variable.builtin "meson" "host_machine" "build_machine" "target_machine"))
|
||||
25
runtime/queries/meson/indents.scm
Normal file
25
runtime/queries/meson/indents.scm
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
[
|
||||
(list)
|
||||
(dictionaries)
|
||||
(normal_command)
|
||||
(if_condition)
|
||||
(foreach_command)
|
||||
(ternaryoperator)
|
||||
(ERROR
|
||||
"?") ; support partial ternary
|
||||
] @indent.begin
|
||||
|
||||
[
|
||||
")"
|
||||
"]"
|
||||
"}"
|
||||
(elseif_command)
|
||||
(else_command)
|
||||
"endif"
|
||||
"endforeach"
|
||||
] @indent.branch @indent.end
|
||||
|
||||
(expression_statement
|
||||
object: (_)) @indent.begin
|
||||
|
||||
(comment) @indent.auto
|
||||
2
runtime/queries/meson/injections.scm
Normal file
2
runtime/queries/meson/injections.scm
Normal file
|
|
@ -0,0 +1,2 @@
|
|||
((comment) @injection.content
|
||||
(#set! injection.language "comment"))
|
||||
Loading…
Add table
Add a link
Reference in a new issue