website/queries/css/highlights.scm

106 lines
1.1 KiB
Scheme
Raw Normal View History

2024-02-15 20:57:59 +01:00
[
"@media"
"@charset"
"@namespace"
"@supports"
"@keyframes"
(at_keyword)
] @keyword.directive
"@import" @keyword.import
[
(to)
(from)
] @keyword
(comment) @comment @spell
(tag_name) @tag
(class_name) @type
(id_name) @constant
[
(property_name)
(feature_name)
] @property
2024-02-13 23:44:35 +01:00
[
(nesting_selector)
(universal_selector)
2024-02-15 20:57:59 +01:00
] @character.special
(function_name) @function
2024-02-13 23:44:35 +01:00
[
"~"
">"
"+"
"-"
"*"
"/"
"="
"^="
"|="
"~="
"$="
"*="
2024-02-15 20:57:59 +01:00
] @operator
[
2024-02-13 23:44:35 +01:00
"and"
"or"
"not"
"only"
2024-02-15 20:57:59 +01:00
] @keyword.operator
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
(important) @type.qualifier
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
(attribute_selector
(plain_value) @string)
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
(pseudo_element_selector
"::"
(tag_name) @attribute)
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
(pseudo_class_selector
(class_name) @attribute)
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
(attribute_name) @tag.attribute
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
(namespace_name) @module
((property_name) @variable
(#lua-match? @variable "^[-][-]"))
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
((plain_value) @variable
(#lua-match? @variable "^[-][-]"))
2024-02-13 23:44:35 +01:00
[
2024-02-15 20:57:59 +01:00
(string_value)
(color_value)
(unit)
] @string
(integer_value) @number
2024-02-13 23:44:35 +01:00
2024-02-15 20:57:59 +01:00
(float_value) @number.float
2024-02-13 23:44:35 +01:00
[
2024-02-15 20:57:59 +01:00
"#"
2024-02-13 23:44:35 +01:00
","
2024-02-15 20:57:59 +01:00
"."
2024-02-13 23:44:35 +01:00
":"
2024-02-15 20:57:59 +01:00
"::"
";"
2024-02-13 23:44:35 +01:00
] @punctuation.delimiter
2024-02-15 20:57:59 +01:00
[
"{"
")"
"("
"}"
] @punctuation.bracket