update c embedding query for preceding comments
This commit is contained in:
parent
b38e3b804c
commit
3a625d15d3
1 changed files with 39 additions and 35 deletions
|
@ -1,39 +1,43 @@
|
||||||
|
(
|
||||||
|
(comment)* @context
|
||||||
|
.
|
||||||
(declaration
|
(declaration
|
||||||
(type_qualifier)? @context
|
|
||||||
type: (_)? @context
|
|
||||||
declarator: [
|
declarator: [
|
||||||
(function_declarator
|
(function_declarator
|
||||||
declarator: (_) @name)
|
declarator: (_) @name)
|
||||||
(pointer_declarator
|
(pointer_declarator
|
||||||
"*" @context
|
"*" @name
|
||||||
declarator: (function_declarator
|
declarator: (function_declarator
|
||||||
declarator: (_) @name))
|
declarator: (_) @name))
|
||||||
(pointer_declarator
|
(pointer_declarator
|
||||||
"*" @context
|
"*" @name
|
||||||
declarator: (pointer_declarator
|
declarator: (pointer_declarator
|
||||||
"*" @context
|
"*" @name
|
||||||
declarator: (function_declarator
|
declarator: (function_declarator
|
||||||
declarator: (_) @name)))
|
declarator: (_) @name)))
|
||||||
]
|
]
|
||||||
) @item
|
) @item
|
||||||
|
)
|
||||||
|
|
||||||
|
(
|
||||||
|
(comment)* @context
|
||||||
|
.
|
||||||
(function_definition
|
(function_definition
|
||||||
(type_qualifier)? @context
|
|
||||||
type: (_)? @context
|
|
||||||
declarator: [
|
declarator: [
|
||||||
(function_declarator
|
(function_declarator
|
||||||
declarator: (_) @name
|
declarator: (_) @name
|
||||||
)
|
)
|
||||||
(pointer_declarator
|
(pointer_declarator
|
||||||
"*" @context
|
"*" @name
|
||||||
declarator: (function_declarator
|
declarator: (function_declarator
|
||||||
declarator: (_) @name
|
declarator: (_) @name
|
||||||
))
|
))
|
||||||
(pointer_declarator
|
(pointer_declarator
|
||||||
"*" @context
|
"*" @name
|
||||||
declarator: (pointer_declarator
|
declarator: (pointer_declarator
|
||||||
"*" @context
|
"*" @name
|
||||||
declarator: (function_declarator
|
declarator: (function_declarator
|
||||||
declarator: (_) @name)))
|
declarator: (_) @name)))
|
||||||
]
|
]
|
||||||
) @item
|
) @item
|
||||||
|
)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue