diff options
| author | nyamatongwe <devnull@localhost> | 2003-02-17 11:18:11 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2003-02-17 11:18:11 +0000 | 
| commit | 2a25b067f78f395392499ac9f19a8028d847d07e (patch) | |
| tree | 045f6c279f221341f136acd2d2cdd2e8db3a65f8 /src/LexPascal.cxx | |
| parent | 0b5372d287924ae28c2b869f6edf2c03035872c8 (diff) | |
| download | scintilla-mirror-2a25b067f78f395392499ac9f19a8028d847d07e.tar.gz | |
Upgraded keyword list descriptions from Brian Quinlan.
Diffstat (limited to 'src/LexPascal.cxx')
| -rw-r--r-- | src/LexPascal.cxx | 16 | 
1 files changed, 11 insertions, 5 deletions
| diff --git a/src/LexPascal.cxx b/src/LexPascal.cxx index 37e5e995f..c3bea6773 100644 --- a/src/LexPascal.cxx +++ b/src/LexPascal.cxx @@ -34,7 +34,7 @@ static void getRange(unsigned int start,  }  static bool IsStreamCommentStyle(int style) { -	return style == SCE_C_COMMENT ||  +	return style == SCE_C_COMMENT ||  		style == SCE_C_COMMENTDOC ||  		style == SCE_C_COMMENTDOCKEYWORD ||  		style == SCE_C_COMMENTDOCKEYWORDERROR; @@ -50,7 +50,7 @@ static int classifyWordPascal(unsigned int start, unsigned int end, /*WordList &  	WordList& keywords = *keywordlists[0];  	WordList& classwords = *keywordlists[1]; -	 +  	char s[100];  	getRange(start, end, styler, s, sizeof(s)); @@ -119,7 +119,7 @@ static void ColourisePascalDoc(unsigned int startPos, int length, int initStyle,  	styler.StartSegment(startPos);  	for (unsigned int i = startPos; i < lengthDoc; i++) {  		char ch = chNext; -		 +  		chNext = styler.SafeGetCharAt(i + 1);  		if ((ch == '\r' && chNext != '\n') || (ch == '\n')) { @@ -329,7 +329,7 @@ static void FoldPascalDoc(unsigned int startPos, int length, int initStyle, Word  			levelPrev = levelCurrent;  			visibleChars = 0;  		} -		 +  		if (!isspacechar(ch))  			visibleChars++;  	} @@ -339,4 +339,10 @@ static void FoldPascalDoc(unsigned int startPos, int length, int initStyle, Word  	styler.SetLevel(lineCurrent, levelPrev | flagsNext);  } -LexerModule lmPascal(SCLEX_PASCAL, ColourisePascalDoc, "pascal", FoldPascalDoc); +static const char * const pascalWordListDesc[] = { +	"Keywords", +	"Classwords", +	0 +}; + +LexerModule lmPascal(SCLEX_PASCAL, ColourisePascalDoc, "pascal", FoldPascalDoc, pascalWordListDesc); | 
