From 536de0c8aec0a54c0cab2974b0b0708b24a46b2b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Wed, 1 Jul 2026 18:40:36 +0200 Subject: [PATCH] fix(ruby): add anchors to doc comment headers Prevents catastrophic slowdown in the tree-sitter query engine after 0.26.10. --- runtime/queries/ruby/highlights.scm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/runtime/queries/ruby/highlights.scm b/runtime/queries/ruby/highlights.scm index 5aa518a28..3116e06b7 100644 --- a/runtime/queries/ruby/highlights.scm +++ b/runtime/queries/ruby/highlights.scm @@ -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