haskell-mode icon indicating copy to clipboard operation
haskell-mode copied to clipboard

When editing multiline strings syntax highlighting continues until end of file

Open Sophia-Gold opened this issue 8 years ago • 2 comments

This seems to occur only when I make changes to a backslash at the beginning or end of a line, or insert a new line in the middle of a string. Sometimes this causes string-style syntax highlighting to end at the edited line without reaching the end of the string and sometimes it highlights the entire rest of the file as if I left out the closing quotation mark.

Other than closing and reopening the file, it can generally be corrected by hitting tab on the first line of the string.

I've noticed this using Emacs 25.3.1 on OS X 10.12.6. I could try to reproduce with Linux at home; I'm not generally writing long SQL queries there to have noticed it otherwise.

Sophia-Gold avatar Oct 10 '17 22:10 Sophia-Gold

Can you give an example? I haven't noticed this in my code and I have some multiline strings.

e.g.

"Donec neque quam, dignissim in, mollis nec, sagittis eu, \
\wisi.  Etiam vel neque nec dui dignissim bibendum.  "

ivan-m avatar Oct 10 '17 23:10 ivan-m

Can't reproduce with GNU Emacs 26.1 (build 1, i686-pc-linux-gnu, GTK+ Version 3.14.5) of 2018-04-10

As there is no respond, maybe close?

andreas-roehler avatar May 05 '18 19:05 andreas-roehler