emacs-devel
[Top][All Lists]
Advanced

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

Re: font-lock-syntactic-keywords obsolet?


From: Dmitry Gutov
Subject: Re: font-lock-syntactic-keywords obsolet?
Date: Sun, 19 Jun 2016 18:07:32 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.2

On 06/19/2016 05:59 PM, Alan Mackenzie wrote:

No, it can't.  If you remove (from a C++ buffer) a terminating template
delimiter (">"), that will have the effect of removing the syntax-table
text property from its former matching opener ("<").

What if you remove the opener first? And then the closer? Will it try to find another opener then?

If so, what if I remove a closing double-quote instead?

Good question.  I put printf's (in effect) into the three routines which
can expand the scanning region in the after-change-function, and
removing a closing double-quote doesn't cause that region to be expanded
beyond the current line.

What about strings like

std::cout << "\
This is a\n\
multiline\n\
string.\
";

or

const char* s1 = R"foo(
Hello
World
)foo";

?

The latter being the case that many languages have to deal with: multi-line string literals.



reply via email to

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