diff options
author | Neil <nyamatongwe@gmail.com> | 2013-08-03 12:58:59 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-08-03 12:58:59 +1000 |
commit | c547cce8d2690a5d063aa5c975cfef9f405c0e4d (patch) | |
tree | de4528efff5369efc67425a9eedbbca8fb42a049 | |
parent | 0c4db4bb07f77ed948ae5bce2ea2558523f58218 (diff) | |
download | scintilla-mirror-c547cce8d2690a5d063aa5c975cfef9f405c0e4d.tar.gz |
Bug [#1509]. ';' not styled as an operator.
From Eric Promislow.
-rw-r--r-- | lexers/LexMSSQL.cxx | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/lexers/LexMSSQL.cxx b/lexers/LexMSSQL.cxx index 820030ca2..1217b2841 100644 --- a/lexers/LexMSSQL.cxx +++ b/lexers/LexMSSQL.cxx @@ -35,19 +35,6 @@ using namespace Scintilla; #define KW_MSSQL_STORED_PROCEDURES 5 #define KW_MSSQL_OPERATORS 6 -static bool isMSSQLOperator(char ch) { - if (IsASCII(ch) && isalnum(ch)) - return false; - // '.' left out as it is used to make up numbers - if (ch == '%' || ch == '^' || ch == '&' || ch == '*' || - ch == '-' || ch == '+' || ch == '=' || ch == '|' || - ch == '<' || ch == '>' || ch == '/' || - ch == '!' || ch == '~' || ch == '(' || ch == ')' || - ch == ',') - return true; - return false; -} - static char classifyWordSQL(unsigned int start, unsigned int end, WordList *keywordlists[], @@ -220,7 +207,7 @@ static void ColouriseMSSQLDoc(unsigned int startPos, int length, styler.ColourTo(i - 1, SCE_MSSQL_DEFAULT); prevState = state; state = SCE_MSSQL_COLUMN_NAME_2; - } else if (isMSSQLOperator(ch)) { + } else if (isoperator(ch)) { styler.ColourTo(i - 1, SCE_MSSQL_DEFAULT); styler.ColourTo(i, SCE_MSSQL_OPERATOR); //~ style = SCE_MSSQL_DEFAULT; |