[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: font-lock-syntactic-keywords obsolet?
From: |
Alan Mackenzie |
Subject: |
Re: font-lock-syntactic-keywords obsolet? |
Date: |
Sun, 19 Jun 2016 15:18:36 +0000 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
Hello, Dmitry.
On Sun, Jun 19, 2016 at 06:07:32PM +0300, Dmitry Gutov wrote:
> 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.
The region which will be scanned for the application of syntax-table
properties is expanded to the "logical" line containing the string. The
critical thing is it is not expanded to EOB, even when removing the
terminating double quote.
--
Alan Mackenzie (Nuremberg, Germany).
- Re: font-lock-syntactic-keywords obsolet?, (continued)
- Re: font-lock-syntactic-keywords obsolet?, Andreas Röhler, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Stefan Monnier, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?,
Alan Mackenzie <=
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/19
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, Alan Mackenzie, 2016/06/20
- Re: font-lock-syntactic-keywords obsolet?, Dmitry Gutov, 2016/06/20