Skip to content

Commit

Permalink
chore: format queries
Browse files Browse the repository at this point in the history
Format queries using nvim-treesitter formatting script.
  • Loading branch information
luckasRanarison committed Aug 2, 2024
1 parent a191869 commit 7e280a5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
3 changes: 2 additions & 1 deletion queries/templ/class.scm
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
; inherits: html

(attribute
name: (attribute_name) @attribute (#eq? @attribute "class")
name: (attribute_name) @attribute
(#eq? @attribute "class")
value: (expression
(_) @tailwind))
10 changes: 5 additions & 5 deletions queries/tsx/class.scm
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
(property_identifier) @_attribute_name
(#any-of? @_attribute_name "class" "className" "style" "css" "tw")
[
(string
(string_fragment) @tailwind)
(jsx_expression
(_) @tailwind)
])
(string
(string_fragment) @tailwind)
(jsx_expression
(_) @tailwind)
])

0 comments on commit 7e280a5

Please sign in to comment.