mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-19 11:50:09 -04:00
fix(ruby): add anchors to doc comment headers
Prevents catastrophic slowdown in the tree-sitter query engine after 0.26.10.
This commit is contained in:
parent
515b2f6e2f
commit
536de0c8ae
1 changed files with 4 additions and 0 deletions
|
|
@ -225,20 +225,24 @@
|
|||
|
||||
(program
|
||||
(comment)+ @comment.documentation
|
||||
.
|
||||
(class))
|
||||
|
||||
(module
|
||||
(comment)+ @comment.documentation
|
||||
.
|
||||
(body_statement
|
||||
(class)))
|
||||
|
||||
(class
|
||||
(comment)+ @comment.documentation
|
||||
.
|
||||
(body_statement
|
||||
(method)))
|
||||
|
||||
(body_statement
|
||||
(comment)+ @comment.documentation
|
||||
.
|
||||
(method))
|
||||
|
||||
; Operators
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue