diff options
Diffstat (limited to 'src/LexEiffel.cxx')
| -rw-r--r-- | src/LexEiffel.cxx | 23 | 
1 files changed, 14 insertions, 9 deletions
| diff --git a/src/LexEiffel.cxx b/src/LexEiffel.cxx index a0bf26a5e..974efd9a7 100644 --- a/src/LexEiffel.cxx +++ b/src/LexEiffel.cxx @@ -28,7 +28,7 @@ static inline bool isEiffelOperator(unsigned int ch) {  	        ch == '{' || ch == '}' || ch == '~' ||  	        ch == '[' || ch == ']' || ch == ';' ||  	        ch == '<' || ch == '>' || ch == ',' || -	        ch == '.' || ch == '^' || ch == '%' || ch == ':' ||  +	        ch == '.' || ch == '^' || ch == '%' || ch == ':' ||  		ch == '!' || ch == '@' || ch == '?';  } @@ -187,19 +187,19 @@ static void FoldEiffelDocKeyWords(unsigned int startPos, int length, int /* init  			s[j] = '\0';  			if ( -				(strcmp(s, "check") == 0) ||  -				(strcmp(s, "debug") == 0) ||  -				(strcmp(s, "deferred") == 0) ||  -				(strcmp(s, "do") == 0) ||  +				(strcmp(s, "check") == 0) || +				(strcmp(s, "debug") == 0) || +				(strcmp(s, "deferred") == 0) || +				(strcmp(s, "do") == 0) ||  				(strcmp(s, "from") == 0) ||  				(strcmp(s, "if") == 0) || -				(strcmp(s, "inspect") == 0) ||  +				(strcmp(s, "inspect") == 0) ||  				(strcmp(s, "once") == 0)  			)  				levelCurrent++;  			if (!lastDeferred && (strcmp(s, "class") == 0))  				levelCurrent++; -			if (strcmp(s, "end") == 0)  +			if (strcmp(s, "end") == 0)  				levelCurrent--;  			lastDeferred = strcmp(s, "deferred") == 0;  		} @@ -226,5 +226,10 @@ static void FoldEiffelDocKeyWords(unsigned int startPos, int length, int /* init  	styler.SetLevel(lineCurrent, levelPrev | flagsNext);  } -LexerModule lmEiffel(SCLEX_EIFFEL, ColouriseEiffelDoc, "eiffel", FoldEiffelDocIndent); -LexerModule lmEiffelkw(SCLEX_EIFFELKW, ColouriseEiffelDoc, "eiffelkw", FoldEiffelDocKeyWords); +static const char * const eiffelWordListDesc[] = { +	"Keywords", +	0 +}; + +LexerModule lmEiffel(SCLEX_EIFFEL, ColouriseEiffelDoc, "eiffel", FoldEiffelDocIndent, eiffelWordListDesc); +LexerModule lmEiffelkw(SCLEX_EIFFELKW, ColouriseEiffelDoc, "eiffelkw", FoldEiffelDocKeyWords, eiffelWordListDesc); | 
