aboutsummaryrefslogtreecommitdiff
path: root/runtime/queries/bash
diff options
context:
space:
mode:
authorath32022-08-24 16:58:15 +0000
committerGitHub2022-08-24 16:58:15 +0000
commit45add73fb1d2c4f2b0c544117c2d83b7081a2a4a (patch)
tree795d28d0d078917051383ae66250076596393320 /runtime/queries/bash
parentfacde9f18c03dd8061199215af5a010903daaedb (diff)
AWK support (#3528)
Diffstat (limited to 'runtime/queries/bash')
-rw-r--r--runtime/queries/bash/injections.scm6
1 files changed, 6 insertions, 0 deletions
diff --git a/runtime/queries/bash/injections.scm b/runtime/queries/bash/injections.scm
index 321c90ad..0fddb10f 100644
--- a/runtime/queries/bash/injections.scm
+++ b/runtime/queries/bash/injections.scm
@@ -1,2 +1,8 @@
((comment) @injection.content
(#set! injection.language "comment"))
+
+(command
+ name: (command_name (word) @_command)
+ argument: (raw_string) @injection.content
+ (#match? @_command "^[gnm]?awk$")
+ (#set! injection.language "awk")) \ No newline at end of file