mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-17 02:40:09 -04:00
feat: add scss parser
This commit is contained in:
parent
1f00ecdfa3
commit
8ac8f2c39b
3 changed files with 54 additions and 0 deletions
|
|
@ -186,6 +186,14 @@ list.css = {
|
||||||
maintainers = {"@TravonteD"},
|
maintainers = {"@TravonteD"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
list.scss = {
|
||||||
|
install_info = {
|
||||||
|
url = "https://github.com/serenadeai/tree-sitter-scss",
|
||||||
|
files = { "src/parser.c", "src/scanner.c" },
|
||||||
|
requires_generate_from_grammar = true,
|
||||||
|
},
|
||||||
|
}
|
||||||
|
|
||||||
list.erlang = {
|
list.erlang = {
|
||||||
install_info = {
|
install_info = {
|
||||||
url = "https://github.com/AbstractMachinesLab/tree-sitter-erlang",
|
url = "https://github.com/AbstractMachinesLab/tree-sitter-erlang",
|
||||||
|
|
|
||||||
39
queries/scss/highlights.scm
Normal file
39
queries/scss/highlights.scm
Normal file
|
|
@ -0,0 +1,39 @@
|
||||||
|
; inherits: css
|
||||||
|
|
||||||
|
[
|
||||||
|
"@mixin"
|
||||||
|
"@media"
|
||||||
|
"@while"
|
||||||
|
"@each"
|
||||||
|
"@include"
|
||||||
|
] @keyword
|
||||||
|
|
||||||
|
(function_name) @function
|
||||||
|
|
||||||
|
|
||||||
|
[
|
||||||
|
">="
|
||||||
|
"<="
|
||||||
|
] @operator
|
||||||
|
|
||||||
|
|
||||||
|
(mixin_statement (name) @function)
|
||||||
|
(mixin_statement (parameters (parameter) @parameter))
|
||||||
|
(plain_value) @string
|
||||||
|
(keyword_query) @function
|
||||||
|
(identifier) @variable
|
||||||
|
(variable_name) @variable
|
||||||
|
|
||||||
|
(each_statement (key) @parameter)
|
||||||
|
(each_statement (value) @parameter)
|
||||||
|
(each_statement (variable_value) @parameter)
|
||||||
|
|
||||||
|
(argument) @parameter
|
||||||
|
(arguments (variable_value) @parameter)
|
||||||
|
|
||||||
|
[
|
||||||
|
"["
|
||||||
|
"]"
|
||||||
|
] @punctuation.bracket
|
||||||
|
|
||||||
|
(include_statement (identifier) @function)
|
||||||
7
queries/scss/indents.scm
Normal file
7
queries/scss/indents.scm
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
; inherits: css
|
||||||
|
|
||||||
|
[
|
||||||
|
(mixin_statement)
|
||||||
|
(while_statement)
|
||||||
|
(each_statement)
|
||||||
|
] @indent
|
||||||
Loading…
Add table
Add a link
Reference in a new issue