mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-01 19:17:02 -04:00
Remove @definition.doc captures
These aren't really definitions and are being show in the definitions list. We aren't using them at the moment, we could use another group or query file.
This commit is contained in:
parent
73a82638a5
commit
68d8f4c02e
3 changed files with 2 additions and 12 deletions
|
|
@ -159,6 +159,7 @@ Mainly for markup languages.
|
|||
```
|
||||
|
||||
### Locals
|
||||
|
||||
```
|
||||
@definition for various definitions
|
||||
@definition.function
|
||||
|
|
@ -174,15 +175,7 @@ Mainly for markup languages.
|
|||
|
||||
@definition.associated to determine the type of a variable
|
||||
@definition.doc for documentation adjacent to a definition. E.g.
|
||||
```
|
||||
|
||||
```scheme
|
||||
(comment)* @definition.doc
|
||||
(method_declaration
|
||||
name: (field_identifier) @definition.method)
|
||||
```
|
||||
|
||||
```
|
||||
@scope
|
||||
@reference
|
||||
@constructor
|
||||
|
|
|
|||
|
|
@ -1,11 +1,9 @@
|
|||
(
|
||||
(comment)* @definition.doc
|
||||
(function_declaration
|
||||
name: (identifier) @definition.function) ;@function
|
||||
)
|
||||
|
||||
(
|
||||
(comment)* @definition.doc
|
||||
(method_declaration
|
||||
name: (field_identifier) @definition.method); @method
|
||||
)
|
||||
|
|
|
|||
|
|
@ -45,8 +45,7 @@
|
|||
|
||||
; Function defines function and scope
|
||||
((function_definition
|
||||
name: (identifier) @definition.function
|
||||
body: (block (expression_statement (string) @definition.doc)?)) @scope
|
||||
name: (identifier) @definition.function) @scope
|
||||
(#set! definition.function.scope "parent"))
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue