mirror of
https://github.com/neovim/neovim.git
synced 2025-12-15 19:05:40 +00:00
feat(treesitter): update C queries from upstream
This commit is contained in:
@@ -1,5 +1,21 @@
|
||||
; ((preproc_arg) @injection.content
|
||||
; (#set! injection.language "c"))
|
||||
((preproc_def
|
||||
(preproc_arg) @injection.content)
|
||||
(#lua-match? @injection.content "\n")
|
||||
(#set! injection.language "c"))
|
||||
|
||||
(preproc_function_def
|
||||
(preproc_arg) @injection.content
|
||||
(#set! injection.language "c"))
|
||||
|
||||
(preproc_call
|
||||
(preproc_arg) @injection.content
|
||||
(#set! injection.language "c"))
|
||||
|
||||
; ((comment) @injection.content
|
||||
; (#set! injection.language "comment"))
|
||||
|
||||
; TODO: add when asm is added
|
||||
; (gnu_asm_expression assembly_code: (string_literal) @injection.content
|
||||
; (#set! injection.language "asm"))
|
||||
; (gnu_asm_expression assembly_code: (concatenated_string (string_literal) @injection.content)
|
||||
; (#set! injection.language "asm"))
|
||||
|
||||
Reference in New Issue
Block a user