|
From: | Dmitry Gutov |
Subject: | bug#73978: 31.0.50; Text syntax applied on too many things in tsx-ts-mode |
Date: | Sun, 24 Nov 2024 15:45:10 +0200 |
User-agent: | Mozilla Thunderbird |
On 24/11/2024 09:47, Eli Zaretskii wrote:
Hey sorry, I haven’t applied the patch. Actually, I want to ask you a question before I do: is there a way to mark a single character in buffer in string syntax? The only way I’m aware of is to mark string delimiter syntax to the start and end of the string, but that doesn’t work for a single character. Take the following snippet as an example: <button>a<button> I want to apply string syntax to “a”. If there’s no such way, I guess just not applying the string syntax in such case is also an option.There's a syntax-table text property, see the node "Syntax Properties" in the ELisp manual. Would that do the job?
In particular, the "generic string" syntax property, this one (string-to-syntax "|") You put it on the first and the last chars of a "generic string".
[Prev in Thread] | Current Thread | [Next in Thread] |