emacs-devel
[Top][All Lists]
Advanced

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

Re: emacs rendering comparisson between emacs23 and emacs26.3


From: Dmitry Gutov
Subject: Re: emacs rendering comparisson between emacs23 and emacs26.3
Date: Mon, 20 Apr 2020 16:33:39 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.4.1

On 20.04.2020 02:21, Stefan Monnier wrote:
You don't know whether it's an unterminated raw string (the usual case)
until you've scanned for a potential closing delimiter.
Is C++ syntax so ambiguous? Can R"( mean something else?
No it has nothing to do with the language's syntax.

It's just a UI choice: Alan likes to highlight the opening string
delimiter of unterminated strings [ Not sure why CC-mode doesn't do the
same for unterminated comments, tho maybe it's just an oversight.  ]

I think this should not vary between major modes, IOW it should be
a separate feature that works on all major modes.

If it can be done reliably outside of CC Mode (i.e. without relying on knowing the particulars of the buffer's programming language), then it's certainly another argument for using syntax-propertize-function/syntax-ppss framework.



reply via email to

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