commit 16e452fd85a823156841b1086afd55d711dcee1a parent b6f353f3c0dfa2d44d339eaaaf0a5f027846880f Author: Tomas Nemec <nemi@skaut.cz> Date: Sun, 18 Sep 2022 23:02:04 +0200 update Diffstat:
M | after/queries/dart/injections.scm | | | 30 | ++++++++++++++++++++++++++++++ |
1 file changed, 30 insertions(+), 0 deletions(-)
diff --git a/after/queries/dart/injections.scm b/after/queries/dart/injections.scm @@ -1,5 +1,6 @@ ;; extends +; triple quotes (annotation (arguments (named_argument @@ -8,9 +9,23 @@ ) ) (#eq? @_identifier "styles") + (#lua-match? @css "^'''.*'''$") (#offset! @css 0 3 0 -3) ) +; Single quotes +(annotation + (arguments + (named_argument + (label (identifier) @_identifier) + (list_literal (string_literal) @css) + ) + ) + (#eq? @_identifier "styles") + (#offset! @css 0 1 0 -1) +) + +; triple quotes (annotation (arguments (named_argument @@ -19,5 +34,20 @@ ) ) (#eq? @_identifier "template") + (#lua-match? @html "^'''.*'''$") (#offset! @html 0 3 0 -3) ) + +; Single quotes +(annotation + (arguments + (named_argument + (label (identifier) @_identifier) + (string_literal) @html + ) + ) + (#eq? @_identifier "template") + (#offset! @html 0 1 0 -1) +) + +