mirror of
https://github.com/HiPhish/rainbow-delimiters.nvim.git
synced 2024-09-16 14:24:05 +02:00
feat(templ): add queries for script and css declarations
This commit is contained in:
parent
7cf719975b
commit
9a1ffa28d3
2 changed files with 19 additions and 0 deletions
|
@ -40,6 +40,14 @@
|
|||
"{" @delimiter
|
||||
"}" @delimiter @sentinel) @container
|
||||
|
||||
(script_block
|
||||
"{" @delimiter
|
||||
"}" @delimiter @sentinel) @container
|
||||
|
||||
(css_declaration
|
||||
"{" @delimiter
|
||||
"}" @delimiter @sentinel) @container
|
||||
|
||||
(component_switch_statement
|
||||
"{" @delimiter
|
||||
"}" @delimiter @sentinel) @container
|
||||
|
|
|
@ -57,6 +57,8 @@ templ posts(posts []Post) {
|
|||
@postsTemplate(posts)
|
||||
if len(posts) > 0 {
|
||||
<div>{ "Not empty" }</div>
|
||||
} else {
|
||||
<div>{ "Empty" }</div>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -71,3 +73,12 @@ templ postsTemplate(posts []Post) {
|
|||
}
|
||||
</div>
|
||||
}
|
||||
|
||||
script withParameters(a string, b string, c int) {
|
||||
console.log(a, b, c);
|
||||
}
|
||||
|
||||
css red() {
|
||||
background-color: #ff0000;
|
||||
font-family: "Iosevka";
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue