Skip to content

Commit

Permalink
fix(query): javascript argument captures (luckasRanarison#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
luckasRanarison committed Aug 2, 2024
1 parent f2e9a0a commit a191869
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions queries/javascript/class.scm
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
(call_expression
function: [
(identifier) @ident (#any-of? @ident "clsx" "classnames" "tw" "css")
(identifier) @ident
(member_expression
object: (identifier) @object-ident (#eq? @object-ident "tw"))
object: (identifier) @object-ident)
]
(#any-of? @ident "clsx" "classnames" "tw" "css")
(#eq? @object-ident "tw")
arguments: [
(arguments
(_)+) @tailwind ; the actual class range is extracted in the code
Expand Down

0 comments on commit a191869

Please sign in to comment.