pitfiend / contexteditor

Context Editor
2 stars 0 forks source link

Multiline string highlighting highlights the remainder of the file sometimes #15

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Open a new buffer and set the highlighter to a language that has
multiline strings (i.e. the D language).
2. Add a couple new lines and enter some plain (unquoted) text on the last
line of the file.
3. Go back to the first line.  Begin a string on it, then make a new line
and close the string.  You should now have a buffer that looks something like:

------
"hello
"

blah blah blah
------

What is the expected output?
The string highlighting should stop at the second quote.

What do you see instead?
The entire remainder of the file - the 'blah blah blah' line - is
highlighted as if it were a string.

What version of the product are you using?
0.98.5

On what operating system?
Windows XP

Please provide any additional information below.
Once you have a multiline string, editing it sometimes causes really weird
behavior.  Sometimes it will alternate the highlighting on and off with
each additional character typed.  Sometimes you can fix the highlighting by
removing and reinserting the opening quote.  

Original issue reported on code.google.com by jarrett....@gmail.com on 18 Jul 2009 at 2:50