bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode


From: Dmitry Gutov
Subject: bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode
Date: Fri, 24 Mar 2023 20:41:23 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.8.0

On 24/03/2023 12:24, Boško Ivanišević wrote:
Navigating word forward/backward skips the Ruby symbol in the ruby-ts-mode.
Adding "simple_symbol" to the treesit-sexp-type-regexp is fixing it.

   (setq-local treesit-sexp-type-regexp
               (regexp-opt '("class"
                             "module"
                             "method"
                             "argument_list"
                             "array"
                             "hash"
                             "parenthesized_statements"
                             "if"
                             "case"
                             "when"
                             "block"
                             "do_block"
                             "begin"
                             "binary"
                             "simple_symbol" ;; <-- missing
                             "assignment")))

Juri, what do you think?

In the context of your previous feedback regarding sexp navigation in ruby-ts-mode.






reply via email to

[Prev in Thread] Current Thread [Next in Thread]