diff options
| author | Christian Clason <c.clason@uni-graz.at> | 2026-07-01 18:40:36 +0200 |
|---|---|---|
| committer | Christian Clason <ch.clason+github@icloud.com> | 2026-07-18 22:23:55 +0200 |
| commit | 536de0c8aec0a54c0cab2974b0b0708b24a46b2b (patch) | |
| tree | 04689833b59815b48cfd091dc1ca6423a2409e96 | |
| parent | ci(emmylua): pin emmyluals at v0.22.0 (diff) | |
| download | nvim-treesitter-536de0c8aec0a54c0cab2974b0b0708b24a46b2b.tar nvim-treesitter-536de0c8aec0a54c0cab2974b0b0708b24a46b2b.tar.gz nvim-treesitter-536de0c8aec0a54c0cab2974b0b0708b24a46b2b.tar.bz2 nvim-treesitter-536de0c8aec0a54c0cab2974b0b0708b24a46b2b.tar.lz nvim-treesitter-536de0c8aec0a54c0cab2974b0b0708b24a46b2b.tar.xz nvim-treesitter-536de0c8aec0a54c0cab2974b0b0708b24a46b2b.tar.zst nvim-treesitter-536de0c8aec0a54c0cab2974b0b0708b24a46b2b.zip | |
fix(ruby): add anchors to doc comment headers
Prevents catastrophic slowdown in the tree-sitter query engine after
0.26.10.
| -rw-r--r-- | runtime/queries/ruby/highlights.scm | 4 |
1 files changed, 4 insertions, 0 deletions
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 |
