mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Merge 91d80b2c73 into 4916d6592e
This commit is contained in:
commit
ccb04ca397
1 changed files with 25 additions and 0 deletions
|
|
@ -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"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue