mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-20 20:30:05 -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
|
(program
|
||||||
(comment)+ @comment.documentation
|
(comment)+ @comment.documentation
|
||||||
|
.
|
||||||
(class))
|
(class))
|
||||||
|
|
||||||
(module
|
(module
|
||||||
(comment)+ @comment.documentation
|
(comment)+ @comment.documentation
|
||||||
|
.
|
||||||
(body_statement
|
(body_statement
|
||||||
(class)))
|
(class)))
|
||||||
|
|
||||||
(class
|
(class
|
||||||
(comment)+ @comment.documentation
|
(comment)+ @comment.documentation
|
||||||
|
.
|
||||||
(body_statement
|
(body_statement
|
||||||
(method)))
|
(method)))
|
||||||
|
|
||||||
(body_statement
|
(body_statement
|
||||||
(comment)+ @comment.documentation
|
(comment)+ @comment.documentation
|
||||||
|
.
|
||||||
(method))
|
(method))
|
||||||
|
|
||||||
; Operators
|
; Operators
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue