From 7e280a515389536d3d020986cac68686ce7b5a64 Mon Sep 17 00:00:00 2001 From: Luckas Date: Fri, 2 Aug 2024 16:44:52 +0300 Subject: [PATCH] chore: format queries Format queries using nvim-treesitter formatting script. --- queries/templ/class.scm | 3 ++- queries/tsx/class.scm | 10 +++++----- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/queries/templ/class.scm b/queries/templ/class.scm index 38191c3..6ab5061 100644 --- a/queries/templ/class.scm +++ b/queries/templ/class.scm @@ -1,6 +1,7 @@ ; inherits: html (attribute - name: (attribute_name) @attribute (#eq? @attribute "class") + name: (attribute_name) @attribute + (#eq? @attribute "class") value: (expression (_) @tailwind)) diff --git a/queries/tsx/class.scm b/queries/tsx/class.scm index be5d2f0..cf6586c 100644 --- a/queries/tsx/class.scm +++ b/queries/tsx/class.scm @@ -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) + ])