Update 2025-06-23

This commit is contained in:
2025-06-23 00:06:54 +03:00
parent 0640243c30
commit a30b78acdb
3 changed files with 12 additions and 2 deletions

View File

@@ -7,3 +7,14 @@
(#match? @injection.content "(SELECT|select|INSERT|insert|UPDATE|update|DELETE|delete).+(FROM|from|INTO|into|VALUES|values|SET|set).*(WHERE|where|GROUP BY|group by)?")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.language "sql"))
;; Inject HTML into view! macro blocks for leptos
(
(macro_invocation
macro: (identifier) @macro_name
(token_tree) @injecttion.content
)
(#eq? @macro_name "view")
(#set! injection.language "html")
(#set! injection.combined)
)