[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls
From: |
Trevor Arjeski |
Subject: |
bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls |
Date: |
Sun, 24 Nov 2024 10:17:40 +0300 |
User-agent: |
Gnus/5.13 (Gnus v5.13) |
Yuan Fu <casouri@gmail.com> writes:
>> On Nov 21, 2024, at 7:30 PM, Randy Taylor <dev@rjt.dev> wrote:
>>
>> On Wednesday, November 20th, 2024 at 13:22, Trevor Arjeski
>> <tmarjeski@gmail.com> wrote:
>>>
>>> Trevor Arjeski tmarjeski@gmail.com writes:
>>>
>>>
>>> I decided to hack around with this a little bit and found that adding
>>> the following lines partially works:
>>>
>>>
>>> I'm sure there is an issue with solving it this way, I just need someone
>>> else more experienced to confirm. It is finicky where it turns the
>>> highlighting on and off when you make some code changes, for example
>>> adding and removing the semi-colon after the macro invocation.
>>
>> Yuan would be the best to answer that.
>
> Using injection (what Emacs calls local parser, same thing) here is fine, I
> think. As Randy said, tree-sitter doesn’t have a good answer for macros. If
> nvim
> uses this workaround (create an injection for the macro and parses it like
> normal rust code), then it should be fine for us to follow suit.
>
Any ideas why my crude implementation of the injection "flickers" on and
off after certain changes?
Thanks,
Trevor
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, acidbong, 2024/11/09
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Eli Zaretskii, 2024/11/09
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Randy Taylor, 2024/11/10
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Trevor Arjeski, 2024/11/19
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Acid Bong, 2024/11/20
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Trevor Arjeski, 2024/11/20
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Randy Taylor, 2024/11/21
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Yuan Fu, 2024/11/24
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls,
Trevor Arjeski <=
- bug#74277: 29.4; rust-ts-mode doesn't highlight some function calls, Yuan Fu, 2024/11/25