mirror of https://github.com/helix-editor/helix
Update scss and highlights (#13414)
parent
0815b52e09
commit
52d4d775ce
|
@ -887,7 +887,7 @@ source = { git = "https://github.com/tree-sitter/tree-sitter-typescript", rev =
|
||||||
name = "css"
|
name = "css"
|
||||||
scope = "source.css"
|
scope = "source.css"
|
||||||
injection-regex = "css"
|
injection-regex = "css"
|
||||||
file-types = ["css", "scss"]
|
file-types = ["css"]
|
||||||
block-comment-tokens = { start = "/*", end = "*/" }
|
block-comment-tokens = { start = "/*", end = "*/" }
|
||||||
language-servers = [ "vscode-css-language-server" ]
|
language-servers = [ "vscode-css-language-server" ]
|
||||||
auto-format = true
|
auto-format = true
|
||||||
|
|
|
@ -1,47 +1,64 @@
|
||||||
[(comment) (single_line_comment)] @comment
|
[(comment) (single_line_comment)] @comment
|
||||||
|
|
||||||
"~" @operator
|
[
|
||||||
">" @operator
|
"~"
|
||||||
"+" @operator
|
">"
|
||||||
"-" @operator
|
"+"
|
||||||
"*" @operator
|
"-"
|
||||||
"/" @operator
|
"*"
|
||||||
"=" @operator
|
"/"
|
||||||
"^=" @operator
|
"="
|
||||||
"|=" @operator
|
"^="
|
||||||
"~=" @operator
|
"|="
|
||||||
"$=" @operator
|
"~="
|
||||||
"*=" @operator
|
"$="
|
||||||
|
"*="
|
||||||
|
] @operator
|
||||||
|
|
||||||
"in" @operator
|
[
|
||||||
"and" @operator
|
"in"
|
||||||
"or" @operator
|
"and"
|
||||||
"not" @operator
|
"or"
|
||||||
"only" @operator
|
"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
|
||||||
|
|
||||||
"@apply" @constant.builtin
|
|
||||||
"@at-root" @constant.builtin
|
|
||||||
"@charset" @constant.builtin
|
|
||||||
"@debug" @constant.builtin
|
|
||||||
"@each" @keyword.control.repeat
|
|
||||||
"@else" @keyword.control.conditional
|
|
||||||
"@error" @constant.builtin
|
|
||||||
"@extend" @constant.builtin
|
|
||||||
"@for" @keyword.control.repeat
|
|
||||||
"@forward" @keyword.control.import
|
|
||||||
"@function" @function.method
|
|
||||||
"@if" @keyword.control.conditional
|
|
||||||
"@import" @keyword.control.import
|
|
||||||
"@include" @keyword.control.import
|
|
||||||
"@keyframes" @constant.builtin
|
|
||||||
"@media" @constant.builtin
|
|
||||||
"@mixin" @constant.builtin
|
|
||||||
"@namespace" @namespace
|
|
||||||
"@return" @keyword.control.return
|
"@return" @keyword.control.return
|
||||||
"@supports" @constant.builtin
|
|
||||||
"@use" @keyword.control.import
|
"@function" @function.method
|
||||||
"@warn" @constant.builtin
|
"@namespace" @namespace
|
||||||
"@while" @keyword.control.repeat
|
|
||||||
|
|
||||||
(property_name) @variable.other.member
|
(property_name) @variable.other.member
|
||||||
|
|
||||||
|
@ -58,10 +75,11 @@
|
||||||
(pseudo_class_selector) @attribute
|
(pseudo_class_selector) @attribute
|
||||||
|
|
||||||
(identifier) @variable
|
(identifier) @variable
|
||||||
(class_name) @variable
|
(class_name) @label
|
||||||
(id_name) @variable
|
(id_name) @label
|
||||||
(namespace_name) @variable
|
(namespace_name) @namespace
|
||||||
(feature_name) @variable
|
|
||||||
|
(feature_name) @variable.other.member
|
||||||
(variable) @variable
|
(variable) @variable
|
||||||
(variable_name) @variable.other.member
|
(variable_name) @variable.other.member
|
||||||
(variable_value) @variable.other.member
|
(variable_value) @variable.other.member
|
||||||
|
|
Loading…
Reference in New Issue