mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-08 22:40:12 -04:00
feat!: drop modules, general refactor and cleanup
This commit is contained in:
parent
c13e28f894
commit
2c8f2f2fad
829 changed files with 4905 additions and 8010 deletions
1
runtime/queries/ninja/folds.scm
Normal file
1
runtime/queries/ninja/folds.scm
Normal file
|
|
@ -0,0 +1 @@
|
|||
(body) @fold
|
||||
98
runtime/queries/ninja/highlights.scm
Normal file
98
runtime/queries/ninja/highlights.scm
Normal file
|
|
@ -0,0 +1,98 @@
|
|||
[
|
||||
"default"
|
||||
"pool"
|
||||
"rule"
|
||||
"build"
|
||||
] @keyword
|
||||
|
||||
[
|
||||
"include"
|
||||
"subninja"
|
||||
] @include
|
||||
|
||||
[
|
||||
":"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"="
|
||||
"|"
|
||||
"||"
|
||||
"|@"
|
||||
] @operator
|
||||
|
||||
[
|
||||
"$"
|
||||
"{"
|
||||
"}"
|
||||
] @punctuation.special
|
||||
|
||||
;;
|
||||
;; Names
|
||||
;; =====
|
||||
(pool name: (identifier) @type)
|
||||
(rule name: (identifier) @function)
|
||||
(let name: (identifier) @constant)
|
||||
(expansion (identifier) @constant)
|
||||
(build rule: (identifier) @function)
|
||||
|
||||
;;
|
||||
;; Paths and Text
|
||||
;; ==============
|
||||
(path) @string.special
|
||||
(text) @string
|
||||
|
||||
;;
|
||||
;; Builtins
|
||||
;; ========
|
||||
(pool name: (identifier) @type.builtin
|
||||
(#any-of? @type.builtin "console"))
|
||||
(build rule: (identifier) @function.builtin
|
||||
(#any-of? @function.builtin "phony" "dyndep"))
|
||||
|
||||
;; Top level bindings
|
||||
;; ------------------
|
||||
(manifest
|
||||
(let name: ((identifier) @constant.builtin
|
||||
(#any-of? @constant.builtin "builddir"
|
||||
"ninja_required_version"))))
|
||||
|
||||
;; Rules bindings
|
||||
;; -----------------
|
||||
(rule
|
||||
(body
|
||||
(let name: (identifier) @constant.builtin
|
||||
(#not-any-of? @constant.builtin "command"
|
||||
"depfile"
|
||||
"deps"
|
||||
"msvc_deps_prefix"
|
||||
"description"
|
||||
"dyndep"
|
||||
"generator"
|
||||
"in"
|
||||
"in_newline"
|
||||
"out"
|
||||
"restat"
|
||||
"rspfile"
|
||||
"rspfile_content"
|
||||
"pool"))))
|
||||
|
||||
;;
|
||||
;; Expansion
|
||||
;; ---------
|
||||
(expansion
|
||||
(identifier) @constant.macro
|
||||
(#any-of? @constant.macro "in" "out"))
|
||||
|
||||
;;
|
||||
;; Escape sequences
|
||||
;; ================
|
||||
(quote) @string.escape
|
||||
|
||||
;;
|
||||
;; Others
|
||||
;; ======
|
||||
[
|
||||
(split)
|
||||
(comment)
|
||||
] @comment
|
||||
6
runtime/queries/ninja/indents.scm
Normal file
6
runtime/queries/ninja/indents.scm
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
[
|
||||
(pool)
|
||||
(rule)
|
||||
(build)
|
||||
] @indent.begin
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue