[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: |
Yuan Fu |
Subject: |
bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode |
Date: |
Thu, 30 Mar 2023 00:47:58 -0700 |
Juri Linkov <juri@linkov.net> writes:
>>> This will break other cases, e.g.
>>> b = %Q{This is a "string"}
>>> c = %w!foo
>>> bar
>>> baz!
>>> d = %(hello (nested) world)
>>> when point is after "b", 'C-M-f' will move to "c" instead of the end of
>>> line.
>>
>> That is because the string literals aren't recognized as sexps yet. Try
>> this:
>>
>> @@ -1129,8 +1129,11 @@ ruby-ts-mode
>> "block"
>> "do_block"
>> "begin"
>> - "binary"
>> - "assignment")))
>> + "integer"
>> + "simple_symbol"
>> + "string"
>> + "string_array"
>> + )))
>
> Thanks, this definitely is an improvement since it handles all mentioned
> cases.
>
> However, there are still a lot of more things that need fixing.
> When point is on the left curly bracket in
>
> b = %Q{This is a "string"}
>
> 'C-M-f' doesn't move to the right curly bracket.
> Also double quotes inside the string are not matched by 'C-M-f'.
>
> In
>
> d = %(hello (nested) world)
>
> 'C-M-f' doesn't move to the closing parens from opening parens.
Have someone fixed these two cases? Because when I tried to invoke
(treesit-forward-sexp), point moved to the closing bracket/paren.
Anyway, I just wonder if there’s any fundamental shortcoming with how
treesit-beginning/end-of-thing works?
Yuan
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Boško Ivanišević, 2023/03/24
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Dmitry Gutov, 2023/03/24
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Juri Linkov, 2023/03/25
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Dmitry Gutov, 2023/03/25
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Juri Linkov, 2023/03/27
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Dmitry Gutov, 2023/03/27
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Juri Linkov, 2023/03/28
- bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode, Dmitry Gutov, 2023/03/28
bug#62416: 30.0.50; Symbols skipped in the navigation in ruby-ts-mode,
Yuan Fu <=