diff options
| author | nyamatongwe <unknown> | 2001-01-02 10:08:49 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2001-01-02 10:08:49 +0000 | 
| commit | b164f9ab272b78ab2f0734e522c65802265f20d2 (patch) | |
| tree | 45c8be9c33bd1c08feecd6e867b661b0143461a5 /src/LexCPP.cxx | |
| parent | 86fbc30bc37ae23df36beaf08e8f050b3db2aa54 (diff) | |
| download | scintilla-mirror-b164f9ab272b78ab2f0734e522c65802265f20d2.tar.gz | |
Addition of SCE_C_COMMENTLINEDOC by Philippe.
Diffstat (limited to 'src/LexCPP.cxx')
| -rw-r--r-- | src/LexCPP.cxx | 9 | 
1 files changed, 7 insertions, 2 deletions
| diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index 014b844a7..9064cd012 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -115,12 +115,17 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo  				}  			} else if (ch == '/' && chNext == '*') {  				styler.ColourTo(i-1, state); -				if (styler.SafeGetCharAt(i + 2) == '*') +				if (styler.SafeGetCharAt(i + 2) == '*' || +					styler.SafeGetCharAt(i + 2) == '!')	// Support of Qt/Doxygen doc. style  					state = SCE_C_COMMENTDOC;  				else  					state = SCE_C_COMMENT;  			} else if (ch == '/' && chNext == '/') {  				styler.ColourTo(i-1, state); +				if (styler.SafeGetCharAt(i + 2) == '/' || +					styler.SafeGetCharAt(i + 2) == '!')	// Support of Qt/Doxygen doc. style +					state = SCE_C_COMMENTLINEDOC; +				else  				state = SCE_C_COMMENTLINE;  			} else if (ch == '/' && isOKBeforeRE(chPrevNonWhite)) {  				styler.ColourTo(i-1, state); @@ -201,7 +206,7 @@ static void ColouriseCppDoc(unsigned int startPos, int length, int initStyle, Wo  						state = SCE_C_DEFAULT;  					}  				} -			} else if (state == SCE_C_COMMENTLINE) { +			} else if (state == SCE_C_COMMENTLINE || state == SCE_C_COMMENTLINEDOC) {  				if (ch == '\r' || ch == '\n') {  					styler.ColourTo(i-1, state);  					state = SCE_C_DEFAULT; | 
