Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

When editing multiline strings syntax highlighting continues until end of file #1561

Open
Sophia-Gold opened this issue Oct 10, 2017 · 2 comments

Comments

@Sophia-Gold
Copy link

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.

@ivan-m
Copy link
Contributor

ivan-m commented Oct 10, 2017

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.  "

@andreas-roehler
Copy link
Contributor

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants