diff options
| author | huki <gk7huki@gmail.com> | 2018-09-24 09:24:10 +1000 | 
|---|---|---|
| committer | huki <gk7huki@gmail.com> | 2018-09-24 09:24:10 +1000 | 
| commit | bf4cbf50a43ed6e803073ff64a923f5d72fbee9c (patch) | |
| tree | 4cf02a990062d5bc7b18c24b353e3ff9e941f4c9 /lexers/LexCPP.cxx | |
| parent | 43372db176028d74ee3d14dd28f7a2063b1ce83e (diff) | |
| download | scintilla-mirror-bf4cbf50a43ed6e803073ff64a923f5d72fbee9c.tar.gz | |
Bug [#2045]. LexCPP: Fix 'elif' token length
Diffstat (limited to 'lexers/LexCPP.cxx')
| -rw-r--r-- | lexers/LexCPP.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/lexers/LexCPP.cxx b/lexers/LexCPP.cxx index ee645e9e0..4df005af2 100644 --- a/lexers/LexCPP.cxx +++ b/lexers/LexCPP.cxx @@ -1279,7 +1279,7 @@ void SCI_METHOD LexerCPP::Lex(Sci_PositionU startPos, Sci_Position length, int i  							// Ensure only one chosen out of #if .. #elif .. #elif .. #else .. #endif  							if (!preproc.CurrentIfTaken()) {  								// Similar to #if -								std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 2, true); +								std::string restOfLine = GetRestOfLine(styler, sc.currentPos + 4, true);  								const bool ifGood = EvaluateExpression(restOfLine, preprocessorDefinitions);  								if (ifGood) {  									preproc.InvertCurrentLevel(); | 
