Kein-Hong Man wrote:
Robert Roessler wrote:
Frank Wunderlich wrote:
Kein-Hong Man, 18.03.2007 12:21:
Frank Wunderlich wrote:
if i type ' the following text should be highlighted as string
(like in any other lexer e.g. hypertext), but it doesn't until the
closing ' is typed.
this is confusing, i think...
Nope, can't reproduce this behaviour. There is some difference, if
you are typing at the end of the file. No big deal.
Can you provide details and an exact reproducible example?
in cpp-lexer (cpp-file,javascript, etc).
somewhere not at the end...
type ', the code till the next ' should be highlighted, but it stays
"normal" till the closing ' is typed...2 images to demonstrate this
are attached...
I can confirm that the single-quoted "string" (really technically a
multi-character character literal AFAIK) is not styled as such until
the closing single quote is seen... however, neither is a normal
[double-quoted] string.
On a vanilla ~1.72 (MinGW), I tried Frank's example (typing in a
single-quoted string in between two preprocessor lines) and I get
style.cpp.12 (unclosed), then style.cpp.7 (closed). What do you mean by
"not styled"? In my vanilla SciTE, it gives an unclosed string style
first, then a single quoted string style, which is the correct thing to
do. At no point is the segment shown in the default style. Maybe some
screenshots to confirm your case?
This is getting out of hand... ;) By "not styled" I merely mean that
the final "string" styling has not been applied until I close the
string - I say that because I can see the font face (or possibly just
weight) change when I close the string.
Remember I said I am seeing the new "fill-to-eol" style being applied
on the still-open string... UNTIL it is closed. I just raised the
possibility that *that* may be obscuring styling issues until it goes
away when the string is closed and the "real" string style is applied.
Robert Roessler
[EMAIL PROTECTED]
http://www.rftp.com
_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest