feat(treesitter): update C queries from upstream

This commit is contained in:
Christian Clason
2023-08-12 18:12:49 +02:00
parent c3dd84e76f
commit 3836eeb901
3 changed files with 68 additions and 7 deletions

View File

@@ -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"))