mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-18 11:20:07 -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" } })
|
; vim.filetype.add({ pattern = { ["some lua pattern here"] = "filetype" } })
|
||||||
((function_call
|
((function_call
|
||||||
name: (_) @_filetypeadd_identifier
|
name: (_) @_filetypeadd_identifier
|
||||||
arguments:
|
arguments: (arguments
|
||||||
(arguments
|
(table_constructor
|
||||||
(table_constructor
|
(field
|
||||||
(field
|
name: (_) @_pattern_key
|
||||||
name: (_) @_pattern_key
|
value: (table_constructor
|
||||||
value:
|
(field
|
||||||
(table_constructor
|
name: (string
|
||||||
(field
|
content: _ @injection.content)))))))
|
||||||
name:
|
|
||||||
(string
|
|
||||||
content: _ @injection.content)))))))
|
|
||||||
(#set! injection.language "luap")
|
(#set! injection.language "luap")
|
||||||
(#eq? @_filetypeadd_identifier "vim.filetype.add")
|
(#eq? @_filetypeadd_identifier "vim.filetype.add")
|
||||||
(#eq? @_pattern_key "pattern"))
|
(#eq? @_pattern_key "pattern"))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue