From a273f2ff943df1d650f4e89a67a71b8260429cc6 Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Wed, 18 Jan 2023 15:13:40 -0800 Subject: [PATCH] highlight python sql strings --- after/queries/python/injections.scm | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 after/queries/python/injections.scm diff --git a/after/queries/python/injections.scm b/after/queries/python/injections.scm new file mode 100644 index 0000000..8b48916 --- /dev/null +++ b/after/queries/python/injections.scm @@ -0,0 +1,11 @@ +; extends + +(assignment + left: (identifier) @_id (#match? @_id "sql") + right: (string) @sql +) + +(assignment + left: (identifier) @_id (#match? @_id "SQL") + right: (string) @sql +)