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

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

bug#73978: 31.0.50; Text syntax applied on too many things in tsx-ts-mod


From: Dmitry Gutov
Subject: bug#73978: 31.0.50; Text syntax applied on too many things in tsx-ts-mode
Date: Thu, 12 Dec 2024 19:19:19 +0200
User-agent: Mozilla Thunderbird

On 12/12/2024 06:56, Yuan Fu wrote:
How hard is it to add a new syntax for this case? Or is there some way to work 
around this? We can’t just not apply the string syntax, because if the “a” is a 
parenthesis, etc, it would mess up the parenthesis balancing after it.

Probably not very hard, but that seems like it'd affect the total set of syntax classes - which means adding it to the manual, etc.

Maybe just give it a whitespace syntax?

Right, in such cases I applied the "whitespace" or "punctuation" syntax to the whole character span, like in https://github.com/dgutov/mmm-mode/blob/master/mmm-erb.el#L97





reply via email to

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