diff --git a/nvim/.config/nvim/after/queries/javascript/injections.scm b/nvim/.config/nvim/after/queries/javascript/injections.scm new file mode 100644 index 0000000..d5cb68e --- /dev/null +++ b/nvim/.config/nvim/after/queries/javascript/injections.scm @@ -0,0 +1,20 @@ +; extends + +( + [ + (template_string) + ] @injection.content + (#match? @injection.content "(SELECT|INSERT|UPDATE|DELETE|CREATE).+(FROM|INTO|VALUES|SET|TABLE).*(WHERE|GROUP BY)?") + (#offset! @injection.content 0 1 0 -1) + (#set! injection.language "sql") + (#set! injection.include-children) +) + +( + [ + (string_fragment) + ] @injection.content + (#match? @injection.content "(SELECT|INSERT|UPDATE|DELETE|CREATE).+(FROM|INTO|VALUES|SET|TABLE).*(WHERE|GROUP BY)?") + (#set! injection.language "sql") + (#set! injection.include-children) +)