emacs-devel
[Top][All Lists]
Advanced

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

Re: [PATCH] Interpret #r"..." as a raw string


From: Dmitry Gutov
Subject: Re: [PATCH] Interpret #r"..." as a raw string
Date: Tue, 2 Mar 2021 16:32:45 +0200
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0

On 02.03.2021 16:14, Alan Mackenzie wrote:
Both are supported by ruby-mode with syntax-propertize-function without
too much trouble.
I've just tried this out, looking up some ruby syntax on Wikipedia.
Adapting its example, start out with this in ruby-mode:

#########################################################################
a = <<-BLOCK

This is a double-quoted string
BLCK
BLOCK
b
#########################################################################

Now everything down to and including the second BLOCK has string face.
This seems correct.  Delete the O from the first BLOCK, so that the
string is now terminated by BLCK.  The second BLOCK still has string
face, although it is no longer in the string.  Is this a bug?

Would be a bug, but I can't exactly reproduce it.

I delete the O, then wait 2 seconds (because of jit-lock-antiblink-grace, I guess?), and the second block gets fontified with font-lock-type-face.

Set jit-lock-antiblink-grace to nil to make this happen faster. Still dependent on jit-lock-context-time, though.



reply via email to

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