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:
Christian Clason 2026-07-01 18:40:36 +02:00 committed by Christian Clason
parent 515b2f6e2f
commit 536de0c8ae

View file

@ -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