This commit is contained in:
Vinícios 2026-04-03 11:33:06 -04:00 committed by GitHub
commit ccb04ca397
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -88,3 +88,28 @@
(#offset! @injection.content 0 1 0 -1)
(#set! injection.include-children)
(#set! injection.self))
(command
name: (command_name
(word)) @_command
.
argument: (raw_string) @injection.content
.
(#eq? @_command "awk")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.include-children)
(#set! injection.language "awk"))
(command
name: (command_name
(word)) @_command
argument: (_)? @_param
.
argument: (raw_string) @injection.content
.
(#eq? @_command "awk")
(#not-any-of? @_param "--file" "--field-separator")
(#not-lua-match? @_param "^%-[^%-]*[fF]")
(#offset! @injection.content 0 1 0 -1)
(#set! injection.include-children)
(#set! injection.language "awk"))