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