mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
style: format query
This commit is contained in:
parent
7051a72755
commit
965f2e7239
1 changed files with 8 additions and 11 deletions
|
|
@ -181,17 +181,14 @@
|
|||
; vim.filetype.add({ pattern = { ["some lua pattern here"] = "filetype" } })
|
||||
((function_call
|
||||
name: (_) @_filetypeadd_identifier
|
||||
arguments:
|
||||
(arguments
|
||||
(table_constructor
|
||||
(field
|
||||
name: (_) @_pattern_key
|
||||
value:
|
||||
(table_constructor
|
||||
(field
|
||||
name:
|
||||
(string
|
||||
content: _ @injection.content)))))))
|
||||
arguments: (arguments
|
||||
(table_constructor
|
||||
(field
|
||||
name: (_) @_pattern_key
|
||||
value: (table_constructor
|
||||
(field
|
||||
name: (string
|
||||
content: _ @injection.content)))))))
|
||||
(#set! injection.language "luap")
|
||||
(#eq? @_filetypeadd_identifier "vim.filetype.add")
|
||||
(#eq? @_pattern_key "pattern"))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue