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 | 09d13caa400519c67a02099b2c8badf85b2b9ad8 (patch) | |
| tree | 5d83457e17388634595833602ea78fd6ff46d969 /lexers/LexMSSQL.cxx | |
| parent | 91ded798b6cffa1ecb3bf95cd9a0fb33c45dc379 (diff) | |
| download | scintilla-mirror-09d13caa400519c67a02099b2c8badf85b2b9ad8.tar.gz | |
Bug [#1509]. ';' not styled as an operator.
From Eric Promislow.
Diffstat (limited to 'lexers/LexMSSQL.cxx')
| -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; | 
