diff options
| author | nyamatongwe <devnull@localhost> | 2010-07-13 21:44:00 +1000 |
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2010-07-13 21:44:00 +1000 |
| commit | f5e7b31bb9c60f85e91a0958ae2e7452a2792063 (patch) | |
| tree | b54aacc72daf0121e9c0e2b28583b2372a3b6aab /lexers/LexTADS3.cxx | |
| parent | 412fd42d7b9f10cb615e5e0ed01d1d9f51ae5f2d (diff) | |
| download | scintilla-mirror-f5e7b31bb9c60f85e91a0958ae2e7452a2792063.tar.gz | |
For new lexer design change includes to add new files and remove unused files.
Normalise order of includes.
Minor fixes for compatibility with new lexer design.
Diffstat (limited to 'lexers/LexTADS3.cxx')
| -rw-r--r-- | lexers/LexTADS3.cxx | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/lexers/LexTADS3.cxx b/lexers/LexTADS3.cxx index ee16a0ac0..75232e2c4 100644 --- a/lexers/LexTADS3.cxx +++ b/lexers/LexTADS3.cxx @@ -33,18 +33,22 @@ #include <stdlib.h> #include <string.h> -#include <ctype.h> #include <stdio.h> #include <stdarg.h> +#include <assert.h> +#include <ctype.h> -#include "Platform.h" +#include "ILexer.h" +#include "Scintilla.h" +#include "SciLexer.h" -#include "PropSet.h" +#include "PropSetSimple.h" +#include "WordList.h" +#include "LexAccessor.h" #include "Accessor.h" #include "StyleContext.h" -#include "KeyWords.h" -#include "Scintilla.h" -#include "SciLexer.h" +#include "CharacterSet.h" +#include "LexerModule.h" #ifdef SCI_NAMESPACE using namespace Scintilla; @@ -70,7 +74,7 @@ static inline bool IsEOL(const int ch, const int chNext) { * - it doesn't want to admit that there's a newline until reaching the END * of the sequence. We meet both needs by saying that there's a newline * when we see the CR in a CR-LF, but skipping the CR before returning so - * that the caller's caller will see that we've stopped at the LF. + * that the caller's caller will see that we've stopped at the LF. */ static inline bool IsEOLSkip(StyleContext &sc) { @@ -82,17 +86,13 @@ static inline bool IsEOLSkip(StyleContext &sc) return true; } - /* + /* * in other cases, we have at most a 1-character newline, so do the - * normal IsEOL test + * normal IsEOL test */ return IsEOL(sc.ch, sc.chNext); } -static inline bool IsASpaceOrTab(const int ch) { - return ch == ' ' || ch == '\t'; -} - static inline bool IsATADS3Operator(const int ch) { return ch == '=' || ch == '{' || ch == '}' || ch == '(' || ch == ')' || ch == '[' || ch == ']' || ch == ',' || ch == ':' || ch == ';' @@ -156,7 +156,7 @@ static void ColouriseTADSHTMLString(StyleContext &sc, int &lineState) { sc.Forward(); } if (chQuote == '"') - lineState &= ~T3_HTML_SQUOTE; + lineState &= ~T3_HTML_SQUOTE; else lineState |= T3_HTML_SQUOTE; |
