-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup(test): update parser install & tests
- Loading branch information
1 parent
619e587
commit a044296
Showing
5 changed files
with
38 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
; inherits: html | ||
|
||
(attribute | ||
name: (attribute_name) @attribute (#eq? @attribute "class") | ||
value: (expression | ||
(_) @tailwind)) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
local parsers = { | ||
"tsx", | ||
"astro", | ||
"php", | ||
"twig", | ||
"svelte", | ||
"vue", | ||
"htmldjango", | ||
"heex", | ||
"elixir", | ||
"javascript", | ||
"templ", | ||
} | ||
|
||
vim.cmd.TSInstallSync(parsers) | ||
vim.cmd.q() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package main | ||
|
||
templ Hello(classname string) { | ||
<div class="container"> | ||
<span class={ classname }>Hello World</span> | ||
</div> | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
require("tests.queries.runner").test({ | ||
name = "templ", | ||
provider = "treesitter", | ||
file = "tests/queries/templ/test.templ", | ||
ranges = { | ||
{ 3, 14, 3, 23 }, | ||
{ 4, 18, 4, 27 }, | ||
}, | ||
}) |