mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
Add highlighting query for Scss @for loops
The Scss language only had highlighting queries for `@each` loops, this commit adds support for `@for` loops as well. Also moved all loop-related keywords (including newly added ones) to `@repeat` rather than `@keyword`
This commit is contained in:
parent
666bbeda9f
commit
2472e47e15
1 changed files with 12 additions and 2 deletions
|
|
@ -3,11 +3,18 @@
|
||||||
[
|
[
|
||||||
"@mixin"
|
"@mixin"
|
||||||
"@media"
|
"@media"
|
||||||
"@while"
|
|
||||||
"@each"
|
|
||||||
"@include"
|
"@include"
|
||||||
] @keyword
|
] @keyword
|
||||||
|
|
||||||
|
[
|
||||||
|
"@while"
|
||||||
|
"@each"
|
||||||
|
"@for"
|
||||||
|
"from"
|
||||||
|
"through"
|
||||||
|
"in"
|
||||||
|
] @repeat
|
||||||
|
|
||||||
(single_line_comment) @comment
|
(single_line_comment) @comment
|
||||||
(function_name) @function
|
(function_name) @function
|
||||||
|
|
||||||
|
|
@ -29,6 +36,9 @@
|
||||||
(each_statement (value) @parameter)
|
(each_statement (value) @parameter)
|
||||||
(each_statement (variable_value) @parameter)
|
(each_statement (variable_value) @parameter)
|
||||||
|
|
||||||
|
(for_statement (variable) @parameter)
|
||||||
|
(for_statement (_ (variable_value) @parameter))
|
||||||
|
|
||||||
(argument) @parameter
|
(argument) @parameter
|
||||||
(arguments (variable_value) @parameter)
|
(arguments (variable_value) @parameter)
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue