mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 20:31:37 -05:00
Update queries
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
- union declarations
|
- union declarations
|
||||||
- function declarations
|
- function declarations
|
||||||
- typedef declarations
|
- typedef declarations
|
||||||
- enum declarations
|
|
||||||
*/
|
*/
|
||||||
export default `
|
export default `
|
||||||
(struct_specifier name: (type_identifier) @name.definition.class body:(_)) @definition.class
|
(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
|
(function_declarator declarator: (identifier) @name.definition.function) @definition.function
|
||||||
|
|
||||||
(type_definition declarator: (type_identifier) @name.definition.type) @definition.type
|
(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
|
- function declarations
|
||||||
- method declarations (with namespace scope)
|
- method declarations (with namespace scope)
|
||||||
- typedef declarations
|
- typedef declarations
|
||||||
- enum declarations
|
|
||||||
- class declarations
|
- class declarations
|
||||||
*/
|
*/
|
||||||
export default `
|
export default `
|
||||||
@@ -20,7 +19,5 @@ export default `
|
|||||||
|
|
||||||
(type_definition declarator: (type_identifier) @name.definition.type) @definition.type
|
(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
|
(class_specifier name: (type_identifier) @name.definition.class) @definition.class
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
- function declarations (with associated comments)
|
- function declarations (with associated comments)
|
||||||
- method declarations (with associated comments)
|
- method declarations (with associated comments)
|
||||||
- type specifications
|
- type specifications
|
||||||
- type references
|
|
||||||
*/
|
*/
|
||||||
export default `
|
export default `
|
||||||
(
|
(
|
||||||
@@ -25,6 +24,4 @@ export default `
|
|||||||
|
|
||||||
(type_spec
|
(type_spec
|
||||||
name: (type_identifier) @name.definition.type) @definition.type
|
name: (type_identifier) @name.definition.type) @definition.type
|
||||||
|
|
||||||
(type_identifier) @name.reference.type @reference.type
|
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -2,7 +2,6 @@
|
|||||||
- class declarations
|
- class declarations
|
||||||
- method declarations
|
- method declarations
|
||||||
- interface declarations
|
- interface declarations
|
||||||
- superclass references
|
|
||||||
*/
|
*/
|
||||||
export default `
|
export default `
|
||||||
(class_declaration
|
(class_declaration
|
||||||
@@ -13,6 +12,4 @@ export default `
|
|||||||
|
|
||||||
(interface_declaration
|
(interface_declaration
|
||||||
name: (identifier) @name.definition.interface) @definition.interface
|
name: (identifier) @name.definition.interface) @definition.interface
|
||||||
|
|
||||||
(superclass (type_identifier) @name.reference.class) @reference.class
|
|
||||||
`
|
`
|
||||||
|
|||||||
@@ -3,7 +3,6 @@
|
|||||||
- method definitions
|
- method definitions
|
||||||
- named function declarations
|
- named function declarations
|
||||||
- arrow functions and function expressions assigned to variables
|
- arrow functions and function expressions assigned to variables
|
||||||
- exported constants
|
|
||||||
*/
|
*/
|
||||||
export default `
|
export default `
|
||||||
(
|
(
|
||||||
@@ -63,15 +62,4 @@ export default `
|
|||||||
(#strip! @doc "^[\\s\\*/]+|^[\\s\\*/]$")
|
(#strip! @doc "^[\\s\\*/]+|^[\\s\\*/]$")
|
||||||
(#select-adjacent! @doc @definition.function)
|
(#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
|
- struct definitions
|
||||||
- enum definitions
|
|
||||||
- union definitions
|
|
||||||
- type aliases
|
|
||||||
- method definitions
|
- method definitions
|
||||||
- function definitions
|
- function definitions
|
||||||
- trait definitions
|
|
||||||
- module definitions
|
|
||||||
- macro definitions
|
|
||||||
*/
|
*/
|
||||||
export default `
|
export default `
|
||||||
(struct_item
|
(struct_item
|
||||||
name: (type_identifier) @name.definition.class) @definition.class
|
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
|
(declaration_list
|
||||||
(function_item
|
(function_item
|
||||||
name: (identifier) @name.definition.method)) @definition.method
|
name: (identifier) @name.definition.method)) @definition.method
|
||||||
|
|
||||||
(function_item
|
(function_item
|
||||||
name: (identifier) @name.definition.function) @definition.function
|
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
|
- class declarations
|
||||||
- protocol declarations
|
|
||||||
- method declarations (including initializers and deinitializers)
|
- method declarations (including initializers and deinitializers)
|
||||||
- property declarations
|
- property declarations
|
||||||
- function declarations
|
- function declarations
|
||||||
@@ -27,20 +26,6 @@ export default `
|
|||||||
)
|
)
|
||||||
) @definition.method
|
) @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_declaration
|
||||||
(class_body
|
(class_body
|
||||||
[
|
[
|
||||||
|
|||||||
@@ -4,9 +4,6 @@
|
|||||||
- abstract method signatures
|
- abstract method signatures
|
||||||
- class declarations (including abstract classes)
|
- class declarations (including abstract classes)
|
||||||
- module declarations
|
- module declarations
|
||||||
- interface declarations
|
|
||||||
- type alias declarations
|
|
||||||
- enum declarations
|
|
||||||
*/
|
*/
|
||||||
export default `
|
export default `
|
||||||
(function_signature
|
(function_signature
|
||||||
@@ -24,9 +21,6 @@ export default `
|
|||||||
(module
|
(module
|
||||||
name: (identifier) @name.definition.module) @definition.module
|
name: (identifier) @name.definition.module) @definition.module
|
||||||
|
|
||||||
(interface_declaration
|
|
||||||
name: (type_identifier) @name.definition.interface) @definition.interface
|
|
||||||
|
|
||||||
(function_declaration
|
(function_declaration
|
||||||
name: (identifier) @name.definition.function) @definition.function
|
name: (identifier) @name.definition.function) @definition.function
|
||||||
|
|
||||||
@@ -35,10 +29,4 @@ export default `
|
|||||||
|
|
||||||
(class_declaration
|
(class_declaration
|
||||||
name: (type_identifier) @name.definition.class) @definition.class
|
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