mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 04:11:10 -05:00
Update queries
This commit is contained in:
@@ -3,7 +3,6 @@
|
||||
- union declarations
|
||||
- function declarations
|
||||
- typedef declarations
|
||||
- enum declarations
|
||||
*/
|
||||
export default `
|
||||
(struct_specifier name: (type_identifier) @name.definition.class body:(_)) @definition.class
|
||||
@@ -13,6 +12,4 @@ export default `
|
||||
(function_declarator declarator: (identifier) @name.definition.function) @definition.function
|
||||
|
||||
(type_definition declarator: (type_identifier) @name.definition.type) @definition.type
|
||||
|
||||
(enum_specifier name: (type_identifier) @name.definition.type) @definition.type
|
||||
`
|
||||
|
||||
@@ -4,7 +4,6 @@
|
||||
- function declarations
|
||||
- method declarations (with namespace scope)
|
||||
- typedef declarations
|
||||
- enum declarations
|
||||
- class declarations
|
||||
*/
|
||||
export default `
|
||||
@@ -20,7 +19,5 @@ export default `
|
||||
|
||||
(type_definition declarator: (type_identifier) @name.definition.type) @definition.type
|
||||
|
||||
(enum_specifier name: (type_identifier) @name.definition.type) @definition.type
|
||||
|
||||
(class_specifier name: (type_identifier) @name.definition.class) @definition.class
|
||||
`
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
- function declarations (with associated comments)
|
||||
- method declarations (with associated comments)
|
||||
- type specifications
|
||||
- type references
|
||||
*/
|
||||
export default `
|
||||
(
|
||||
@@ -25,6 +24,4 @@ export default `
|
||||
|
||||
(type_spec
|
||||
name: (type_identifier) @name.definition.type) @definition.type
|
||||
|
||||
(type_identifier) @name.reference.type @reference.type
|
||||
`
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
- class declarations
|
||||
- method declarations
|
||||
- interface declarations
|
||||
- superclass references
|
||||
*/
|
||||
export default `
|
||||
(class_declaration
|
||||
@@ -13,6 +12,4 @@ export default `
|
||||
|
||||
(interface_declaration
|
||||
name: (identifier) @name.definition.interface) @definition.interface
|
||||
|
||||
(superclass (type_identifier) @name.reference.class) @reference.class
|
||||
`
|
||||
|
||||
@@ -3,7 +3,6 @@
|
||||
- method definitions
|
||||
- named function declarations
|
||||
- arrow functions and function expressions assigned to variables
|
||||
- exported constants
|
||||
*/
|
||||
export default `
|
||||
(
|
||||
@@ -63,15 +62,4 @@ export default `
|
||||
(#strip! @doc "^[\\s\\*/]+|^[\\s\\*/]$")
|
||||
(#select-adjacent! @doc @definition.function)
|
||||
)
|
||||
|
||||
(export_statement value: (assignment_expression left: (identifier) @name right: ([
|
||||
(number)
|
||||
(string)
|
||||
(identifier)
|
||||
(undefined)
|
||||
(null)
|
||||
(new_expression)
|
||||
(binary_expression)
|
||||
(call_expression)
|
||||
]))) @definition.constant
|
||||
`
|
||||
|
||||
@@ -1,40 +1,16 @@
|
||||
/*
|
||||
- struct definitions
|
||||
- enum definitions
|
||||
- union definitions
|
||||
- type aliases
|
||||
- method definitions
|
||||
- function definitions
|
||||
- trait definitions
|
||||
- module definitions
|
||||
- macro definitions
|
||||
*/
|
||||
export default `
|
||||
(struct_item
|
||||
name: (type_identifier) @name.definition.class) @definition.class
|
||||
|
||||
(enum_item
|
||||
name: (type_identifier) @name.definition.class) @definition.class
|
||||
|
||||
(union_item
|
||||
name: (type_identifier) @name.definition.class) @definition.class
|
||||
|
||||
(type_item
|
||||
name: (type_identifier) @name.definition.class) @definition.class
|
||||
|
||||
(declaration_list
|
||||
(function_item
|
||||
name: (identifier) @name.definition.method)) @definition.method
|
||||
|
||||
(function_item
|
||||
name: (identifier) @name.definition.function) @definition.function
|
||||
|
||||
(trait_item
|
||||
name: (type_identifier) @name.definition.interface) @definition.interface
|
||||
|
||||
(mod_item
|
||||
name: (identifier) @name.definition.module) @definition.module
|
||||
|
||||
(macro_definition
|
||||
name: (identifier) @name.definition.macro) @definition.macro
|
||||
`
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
/*
|
||||
- class declarations
|
||||
- protocol declarations
|
||||
- method declarations (including initializers and deinitializers)
|
||||
- property declarations
|
||||
- function declarations
|
||||
@@ -27,20 +26,6 @@ export default `
|
||||
)
|
||||
) @definition.method
|
||||
|
||||
(protocol_declaration
|
||||
(protocol_body
|
||||
[
|
||||
(protocol_function_declaration
|
||||
name: (simple_identifier) @name
|
||||
)
|
||||
(subscript_declaration
|
||||
(parameter (simple_identifier) @name)
|
||||
)
|
||||
(init_declaration "init" @name)
|
||||
]
|
||||
)
|
||||
) @definition.method
|
||||
|
||||
(class_declaration
|
||||
(class_body
|
||||
[
|
||||
|
||||
@@ -4,9 +4,6 @@
|
||||
- abstract method signatures
|
||||
- class declarations (including abstract classes)
|
||||
- module declarations
|
||||
- interface declarations
|
||||
- type alias declarations
|
||||
- enum declarations
|
||||
*/
|
||||
export default `
|
||||
(function_signature
|
||||
@@ -24,9 +21,6 @@ export default `
|
||||
(module
|
||||
name: (identifier) @name.definition.module) @definition.module
|
||||
|
||||
(interface_declaration
|
||||
name: (type_identifier) @name.definition.interface) @definition.interface
|
||||
|
||||
(function_declaration
|
||||
name: (identifier) @name.definition.function) @definition.function
|
||||
|
||||
@@ -35,10 +29,4 @@ export default `
|
||||
|
||||
(class_declaration
|
||||
name: (type_identifier) @name.definition.class) @definition.class
|
||||
|
||||
(type_alias_declaration
|
||||
name: (type_identifier) @name.definition.type) @definition.type
|
||||
|
||||
(enum_declaration
|
||||
name: (identifier) @name.definition.enum) @definition.enum
|
||||
`
|
||||
|
||||
Reference in New Issue
Block a user