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?

[snip]

--
Cheers,
Kein-Hong Man (esq.)
Kuala Lumpur, Malaysia

_______________________________________________
Scite-interest mailing list
[email protected]
http://mailman.lyra.org/mailman/listinfo/scite-interest

Reply via email to