diff options
| author | nyamatongwe <unknown> | 2008-02-08 03:38:52 +0000 | 
|---|---|---|
| committer | nyamatongwe <unknown> | 2008-02-08 03:38:52 +0000 | 
| commit | 6c71faade9aaed0b3372bae5030503a04d1191e0 (patch) | |
| tree | 6f9e614edc867611eb925f039d868fc3ce53ed28 | |
| parent | db4f59fe4f4b5c4e7bcbd47bb46fdb9bfe977350 (diff) | |
| download | scintilla-mirror-6c71faade9aaed0b3372bae5030503a04d1191e0.tar.gz | |
Recognize != operator from Octave instead of entering command mode.
| -rw-r--r-- | src/LexCPP.cxx | 3 | ||||
| -rw-r--r-- | src/LexMatlab.cxx | 2 | 
2 files changed, 4 insertions, 1 deletions
diff --git a/src/LexCPP.cxx b/src/LexCPP.cxx index 49dad8b9b..77d371b90 100644 --- a/src/LexCPP.cxx +++ b/src/LexCPP.cxx @@ -445,6 +445,9 @@ static void FoldCppDoc(unsigned int startPos, int length, int initStyle,  			visibleChars = 0;  		}  	} +	if ((unsigned)styler.Length() == endPos) { +		styler.SetLevel(lineCurrent, levelCurrent); +	}  }  static const char * const cppWordLists[] = { diff --git a/src/LexMatlab.cxx b/src/LexMatlab.cxx index 9652a6f60..4e467bd2f 100644 --- a/src/LexMatlab.cxx +++ b/src/LexMatlab.cxx @@ -128,7 +128,7 @@ static void ColouriseMatlabOctaveDoc(  		if (sc.state == SCE_MATLAB_DEFAULT) {  			if (IsCommentChar(sc.ch)) {  				sc.SetState(SCE_MATLAB_COMMENT); -			} else if (sc.ch == '!') { +			} else if (sc.ch == '!' && sc.chNext != '=' ) {  				sc.SetState(SCE_MATLAB_COMMAND);  			} else if (sc.ch == '\'') {  				if (transpose) {  | 
