helix-mirror/runtime/queries/css/highlights.scm

86 lines
978 B
Scheme
Raw Normal View History

2021-04-09 12:42:49 +04:00
(comment) @comment
2022-11-28 05:11:12 +04:00
[
(tag_name)
(nesting_selector)
(universal_selector)
] @tag
2021-04-09 12:42:49 +04:00
2022-11-28 05:11:12 +04:00
[
"~"
">"
"+"
"-"
"*"
"/"
"="
"^="
"|="
"~="
"$="
"*="
] @operator
2021-04-09 12:42:49 +04:00
2022-11-28 05:11:12 +04:00
[
"and"
"not"
"only"
"or"
] @keyword.operator
2021-04-09 12:42:49 +04:00
((property_name) @variable
(#match? @variable "^--"))
((plain_value) @variable
(#match? @variable "^--"))
2022-11-28 05:11:12 +04:00
(attribute_name) @attribute
(class_name) @label
(feature_name) @variable.other.member
(function_name) @function
(id_name) @label
(namespace_name) @namespace
(property_name) @variable.other.member
[
"@charset"
"@import"
"@keyframes"
"@media"
"@namespace"
"@supports"
(at_keyword)
(from)
(important)
(to)
] @keyword
[
"#"
"."
] @punctuation
2021-04-09 12:42:49 +04:00
(string_value) @string
2022-11-28 05:11:12 +04:00
((color_value) "#") @string.special
2021-04-09 12:42:49 +04:00
(color_value) @string.special
(integer_value) @constant.numeric.integer
(float_value) @constant.numeric.float
2021-04-09 12:42:49 +04:00
2022-11-28 05:11:12 +04:00
[
")"
"("
"["
"]"
"{"
"}"
] @punctuation.bracket
[
","
";"
":"
"::"
] @punctuation.delimiter
(plain_value) @constant