2022-12-04 23:45:31 +08:00
|
|
|
[(comment) (single_line_comment)] @comment
|
2022-07-17 17:55:20 +08:00
|
|
|
|
2025-04-26 23:35:31 +08:00
|
|
|
[
|
|
|
|
"~"
|
|
|
|
">"
|
|
|
|
"+"
|
|
|
|
"-"
|
|
|
|
"*"
|
|
|
|
"/"
|
|
|
|
"="
|
|
|
|
"^="
|
|
|
|
"|="
|
|
|
|
"~="
|
|
|
|
"$="
|
|
|
|
"*="
|
|
|
|
] @operator
|
|
|
|
|
|
|
|
[
|
|
|
|
"in"
|
|
|
|
"and"
|
|
|
|
"or"
|
|
|
|
"not"
|
|
|
|
"only"
|
|
|
|
] @operator.control
|
|
|
|
|
|
|
|
[
|
|
|
|
"@apply"
|
|
|
|
"@at-root"
|
|
|
|
"@charset"
|
|
|
|
"@debug"
|
|
|
|
"@error"
|
|
|
|
"@extend"
|
|
|
|
"@keyframes"
|
|
|
|
"@media"
|
|
|
|
"@mixin"
|
|
|
|
"@supports"
|
|
|
|
"@warn"
|
|
|
|
] @constant.builtin
|
|
|
|
|
|
|
|
[
|
|
|
|
"@import"
|
|
|
|
"@include"
|
|
|
|
"@forward"
|
|
|
|
"@use"
|
|
|
|
] @keyword.control.import
|
|
|
|
|
|
|
|
[
|
|
|
|
"@if"
|
|
|
|
"@else"
|
|
|
|
] @keyword.control.conditional
|
|
|
|
|
|
|
|
[
|
|
|
|
"@each"
|
|
|
|
"@for"
|
|
|
|
"@while"
|
|
|
|
] @keyword.control.repeat
|
|
|
|
|
|
|
|
"@return" @keyword.control.return
|
|
|
|
|
2022-07-17 17:55:20 +08:00
|
|
|
"@function" @function.method
|
|
|
|
"@namespace" @namespace
|
|
|
|
|
2025-02-03 08:17:10 +08:00
|
|
|
(property_name) @variable.other.member
|
|
|
|
|
2022-07-17 17:55:20 +08:00
|
|
|
((property_name) @variable
|
2024-03-17 23:43:35 +08:00
|
|
|
(#match? @variable "^--"))
|
2022-07-17 17:55:20 +08:00
|
|
|
((plain_value) @variable
|
2024-03-17 23:43:35 +08:00
|
|
|
(#match? @variable "^--"))
|
2022-07-17 17:55:20 +08:00
|
|
|
|
|
|
|
(tag_name) @tag
|
|
|
|
(universal_selector) @tag
|
|
|
|
(attribute_selector (plain_value) @string)
|
|
|
|
(nesting_selector) @variable.other.member
|
|
|
|
(pseudo_element_selector) @attribute
|
|
|
|
(pseudo_class_selector) @attribute
|
|
|
|
|
|
|
|
(identifier) @variable
|
2025-04-26 23:35:31 +08:00
|
|
|
(class_name) @label
|
|
|
|
(id_name) @label
|
|
|
|
(namespace_name) @namespace
|
|
|
|
|
|
|
|
(feature_name) @variable.other.member
|
2022-07-17 17:55:20 +08:00
|
|
|
(variable) @variable
|
|
|
|
(variable_name) @variable.other.member
|
|
|
|
(variable_value) @variable.other.member
|
|
|
|
(argument_name) @variable.parameter
|
|
|
|
(selectors) @variable.other.member
|
|
|
|
|
|
|
|
(attribute_name) @attribute
|
|
|
|
|
|
|
|
(function_name) @function
|
|
|
|
|
|
|
|
(to) @keyword
|
|
|
|
(from) @keyword
|
|
|
|
(important) @keyword
|
|
|
|
|
|
|
|
(string_value) @string
|
|
|
|
(color_value) @string.special
|
|
|
|
|
|
|
|
(integer_value) @constant.numeric.integer
|
|
|
|
(float_value) @constant.numeric.float
|
|
|
|
(unit) @type
|
|
|
|
|
|
|
|
"#" @punctuation.delimiter
|
|
|
|
"," @punctuation.delimiter
|