mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-06 13:30:01 -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
47
runtime/queries/requirements/highlights.scm
Normal file
47
runtime/queries/requirements/highlights.scm
Normal file
|
|
@ -0,0 +1,47 @@
|
|||
;; packages
|
||||
|
||||
(package) @variable
|
||||
|
||||
(extras (package) @parameter)
|
||||
|
||||
(path) @text.underline @string.special
|
||||
|
||||
(url) @text.uri
|
||||
|
||||
;; versions
|
||||
|
||||
(version_cmp) @operator
|
||||
|
||||
(version) @number
|
||||
|
||||
;; markers
|
||||
|
||||
(marker_var) @attribute
|
||||
|
||||
(marker_op) @keyword.operator
|
||||
|
||||
;; options
|
||||
|
||||
(option) @function
|
||||
|
||||
"=" @operator
|
||||
|
||||
;; punctuation
|
||||
|
||||
[ "[" "]" "(" ")" ] @punctuation.bracket
|
||||
|
||||
[ "," ";" "@" ] @punctuation.delimiter
|
||||
|
||||
[ "${" "}" ] @punctuation.special
|
||||
|
||||
;; misc
|
||||
|
||||
(env_var) @constant
|
||||
|
||||
(quoted_string) @string
|
||||
|
||||
(linebreak) @character.special
|
||||
|
||||
(ERROR) @error
|
||||
|
||||
(comment) @comment @spell
|
||||
2
runtime/queries/requirements/injections.scm
Normal file
2
runtime/queries/requirements/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