mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -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
3
runtime/queries/css/folds.scm
Normal file
3
runtime/queries/css/folds.scm
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
[
|
||||
(rule_set)
|
||||
] @fold
|
||||
91
runtime/queries/css/highlights.scm
Normal file
91
runtime/queries/css/highlights.scm
Normal file
|
|
@ -0,0 +1,91 @@
|
|||
[
|
||||
"@media"
|
||||
"@charset"
|
||||
"@namespace"
|
||||
"@supports"
|
||||
"@keyframes"
|
||||
(at_keyword)
|
||||
(to)
|
||||
(from)
|
||||
] @keyword
|
||||
|
||||
"@import" @include
|
||||
|
||||
(comment) @comment @spell
|
||||
|
||||
[
|
||||
(tag_name)
|
||||
(nesting_selector)
|
||||
(universal_selector)
|
||||
] @type
|
||||
|
||||
(function_name) @function
|
||||
|
||||
[
|
||||
"~"
|
||||
">"
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"="
|
||||
"^="
|
||||
"|="
|
||||
"~="
|
||||
"$="
|
||||
"*="
|
||||
"and"
|
||||
"or"
|
||||
"not"
|
||||
"only"
|
||||
] @operator
|
||||
|
||||
(important) @type.qualifier
|
||||
|
||||
(attribute_selector (plain_value) @string)
|
||||
(pseudo_element_selector "::" (tag_name) @property)
|
||||
(pseudo_class_selector (class_name) @property)
|
||||
|
||||
[
|
||||
(class_name)
|
||||
(id_name)
|
||||
(property_name)
|
||||
(feature_name)
|
||||
(attribute_name)
|
||||
] @property
|
||||
|
||||
(namespace_name) @namespace
|
||||
|
||||
((property_name) @type.definition
|
||||
(#lua-match? @type.definition "^[-][-]"))
|
||||
((plain_value) @type
|
||||
(#lua-match? @type "^[-][-]"))
|
||||
|
||||
[
|
||||
(string_value)
|
||||
(color_value)
|
||||
(unit)
|
||||
] @string
|
||||
|
||||
[
|
||||
(integer_value)
|
||||
(float_value)
|
||||
] @number
|
||||
|
||||
[
|
||||
"#"
|
||||
","
|
||||
"."
|
||||
":"
|
||||
"::"
|
||||
";"
|
||||
] @punctuation.delimiter
|
||||
|
||||
[
|
||||
"{"
|
||||
")"
|
||||
"("
|
||||
"}"
|
||||
] @punctuation.bracket
|
||||
|
||||
(ERROR) @error
|
||||
9
runtime/queries/css/indents.scm
Normal file
9
runtime/queries/css/indents.scm
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
[
|
||||
(block)
|
||||
(declaration)
|
||||
] @indent.begin
|
||||
|
||||
(block ("}") @indent.branch)
|
||||
("}") @indent.dedent
|
||||
|
||||
(comment) @indent.ignore
|
||||
2
runtime/queries/css/injections.scm
Normal file
2
runtime/queries/css/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