diff options
author | kudah <kudahkukarek@gmail.com> | 2013-05-26 06:36:49 +0300 |
---|---|---|
committer | kudah <kudahkukarek@gmail.com> | 2013-05-26 06:36:49 +0300 |
commit | db5e7b76c0f99ab6476929ac5df170fa51ecc666 (patch) | |
tree | 7cdd9ca1417cb99ee9ab0bf689345037507a0d52 /lexers/LexHaskell.cxx | |
parent | e09a7f2837fbd55ac8cefb0070a1c061bd830660 (diff) | |
download | scintilla-mirror-db5e7b76c0f99ab6476929ac5df170fa51ecc666.tar.gz |
* Fixed a bug in incremental lexing which often caused a full redraw
* Don't highlight CPP inside comments when styling.within.preprocessor is on, to avoid incoherent coloring.
Diffstat (limited to 'lexers/LexHaskell.cxx')
-rw-r--r-- | lexers/LexHaskell.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lexers/LexHaskell.cxx b/lexers/LexHaskell.cxx index e56906b81..9b4ad14e9 100644 --- a/lexers/LexHaskell.cxx +++ b/lexers/LexHaskell.cxx @@ -597,7 +597,8 @@ void SCI_METHOD LexerHaskell::Lex(unsigned int startPos, int length, int initSty hs.lmode = LITERATE_BIRD; } // Preprocessor - else if (sc.atLineStart && sc.ch == '#' && options.cpp) { + else if (sc.atLineStart && sc.ch == '#' && options.cpp + && (!options.stylingWithinPreprocessor || sc.state == SCE_HA_DEFAULT)) { sc.SetState(SCE_HA_PREPROCESSOR); sc.Forward(); } @@ -960,7 +961,6 @@ void SCI_METHOD LexerHaskell::Lex(unsigned int startPos, int length, int initSty sc.Forward(); } } - styler.SetLineState(lineCurrent, hs.ToLineState()); sc.Complete(); } |