diff options
author | Neil <nyamatongwe@gmail.com> | 2015-11-20 11:05:28 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2015-11-20 11:05:28 +1100 |
commit | 6652c4eadad09cf6ea23b690c92d70b55a49d57f (patch) | |
tree | 955441c738e7e43de65414f956b16d678486eb1a /lexers/LexMySQL.cxx | |
parent | ad16ecb14a085d950b6a243b02267a0eca50f5c9 (diff) | |
download | scintilla-mirror-6652c4eadad09cf6ea23b690c92d70b55a49d57f.tar.gz |
Remove line end whitespace.
Diffstat (limited to 'lexers/LexMySQL.cxx')
-rw-r--r-- | lexers/LexMySQL.cxx | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lexers/LexMySQL.cxx b/lexers/LexMySQL.cxx index 4609619f4..703b24daf 100644 --- a/lexers/LexMySQL.cxx +++ b/lexers/LexMySQL.cxx @@ -362,7 +362,7 @@ static void FoldMySQLDoc(Sci_PositionU startPos, Sci_Position length, int initSt int styleNext = styler.StyleAt(startPos); int style = initStyle; int activeState = (style == SCE_MYSQL_HIDDENCOMMAND) ? HIDDENCOMMAND_STATE : style & HIDDENCOMMAND_STATE; - + bool endPending = false; bool whenPending = false; bool elseIfPending = false; @@ -375,11 +375,11 @@ static void FoldMySQLDoc(Sci_PositionU startPos, Sci_Position length, int initSt style = styleNext; styleNext = styler.StyleAt(i + 1); activeState = (style == SCE_MYSQL_HIDDENCOMMAND) ? HIDDENCOMMAND_STATE : style & HIDDENCOMMAND_STATE; - + char currentChar = nextChar; nextChar = styler.SafeGetCharAt(i + 1); bool atEOL = (currentChar == '\r' && nextChar != '\n') || (currentChar == '\n'); - + switch (MASKACTIVE(style)) { case SCE_MYSQL_COMMENT: @@ -392,7 +392,7 @@ static void FoldMySQLDoc(Sci_PositionU startPos, Sci_Position length, int initSt break; case SCE_MYSQL_COMMENTLINE: if (foldComment) - { + { // Not really a standard, but we add support for single line comments // with special curly braces syntax as foldable comments too. // MySQL needs -- comments to be followed by space or control char @@ -500,12 +500,12 @@ static void FoldMySQLDoc(Sci_PositionU startPos, Sci_Position length, int initSt } } } - + // Keep the current end state for the next round. endPending = endFound; } break; - + default: if (!isspacechar(currentChar) && endPending) { @@ -547,7 +547,7 @@ static void FoldMySQLDoc(Sci_PositionU startPos, Sci_Position length, int initSt lev |= SC_FOLDLEVELHEADERFLAG; if (lev != styler.LevelAt(lineCurrent)) styler.SetLevel(lineCurrent, lev); - + lineCurrent++; levelCurrent = levelNext; visibleChars = 0; |