diff options
author | Neil <nyamatongwe@gmail.com> | 2018-03-16 16:57:06 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-03-16 16:57:06 +1100 |
commit | f6bc0ea88ffc93459eba56a1f1872099500405a0 (patch) | |
tree | 1275279eb8f81c798caf5624fc33dfaf5bf52e81 /lexers/LexMaxima.cxx | |
parent | c7441815efcd622731ba1c79d7b5f93e5f7eab91 (diff) | |
download | scintilla-mirror-f6bc0ea88ffc93459eba56a1f1872099500405a0.tar.gz |
Backport: Remove line-end white space.
Backport of changeset 6625:2dd6b8049c4e.
Diffstat (limited to 'lexers/LexMaxima.cxx')
-rw-r--r-- | lexers/LexMaxima.cxx | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/lexers/LexMaxima.cxx b/lexers/LexMaxima.cxx index 08f4a0901..4897c995e 100644 --- a/lexers/LexMaxima.cxx +++ b/lexers/LexMaxima.cxx @@ -52,7 +52,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int !((styler.SafeGetCharAt(i+1) == '*') && (styler.SafeGetCharAt(i) == '/'))) i--; } - + for (; i < lengthDoc; i++) { char ch = styler.SafeGetCharAt(i); char chNext = styler.SafeGetCharAt(i + 1); @@ -65,7 +65,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int if((ch == '/') && (chNext == '*')) { i++;i++; - + chNext = styler.SafeGetCharAt(i); for (; i < lengthDoc; i++) { @@ -84,7 +84,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int styler.ColourTo(i, SCE_MAXIMA_COMMENT); continue; } - + // Handle Operators if(isMaximaoperator(ch)) { @@ -98,7 +98,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int styler.ColourTo(i, SCE_MAXIMA_COMMANDENDING); continue; } - + // Handle numbers. Numbers always begin with a digit. if(IsASCII(ch) && isdigit(ch)) { @@ -110,7 +110,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int if(ch == '.') continue; - + // A "e" or similar can be followed by a "+" or a "-" if(((ch == 'e') || (ch == 'b') || (ch == 'g') || (ch == 'f')) && ((chNext == '+') || (chNext == '-'))) @@ -119,7 +119,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int chNext = styler.SafeGetCharAt(i + 1); continue; } - + if(!IsASCII(ch) || !(isdigit(ch) || islower(ch) || isupper(ch))) { i--; @@ -149,7 +149,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int styler.ColourTo(i, SCE_MAXIMA_STRING); continue; } - + // Handle keywords. Maxima treats Non-ASCII chars as ordinary letters. if(((!IsASCII(ch))) || isalpha(ch) || (ch == '_')) { @@ -194,7 +194,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int styler.ColourTo(i, SCE_MAXIMA_COMMAND); continue; } - + // All other keywords are functions if they are followed // by an opening parenthesis char nextNonwhitespace = ' '; @@ -214,7 +214,7 @@ static void ColouriseMaximaDoc(Sci_PositionU startPos, Sci_Position length, int } continue; } - + styler.ColourTo(i-1, SCE_MAXIMA_UNKNOWN); } } |