diff options
| author | nyamatongwe <devnull@localhost> | 2009-05-21 23:12:56 +0000 | 
|---|---|---|
| committer | nyamatongwe <devnull@localhost> | 2009-05-21 23:12:56 +0000 | 
| commit | a27f2138f69dde63cd5257c0d9da15072c679770 (patch) | |
| tree | 32fd83938da9b613594811a7d6b3f2ec87ed864b /src | |
| parent | ef5c71bb758cbf59a23028be34d475c6c072e5d7 (diff) | |
| download | scintilla-mirror-a27f2138f69dde63cd5257c0d9da15072c679770.tar.gz | |
Feature Request #2794989 LexLisp: Treat [] and {} as balanced operators
from Eric Kidd.
Diffstat (limited to 'src')
| -rw-r--r-- | src/LexLisp.cxx | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/src/LexLisp.cxx b/src/LexLisp.cxx index 8784e388a..e1d06cbac 100644 --- a/src/LexLisp.cxx +++ b/src/LexLisp.cxx @@ -32,7 +32,7 @@ using namespace Scintilla;  static inline bool isLispoperator(char ch) {  	if (isascii(ch) && isalnum(ch))  		return false; -	if (ch == '\'' || ch == '`' || ch == '(' || ch == ')' ) +	if (ch == '\'' || ch == '`' || ch == '(' || ch == ')' || ch == '[' || ch == ']' || ch == '{' || ch == '}')  		return true;  	return false;  } @@ -246,9 +246,9 @@ static void FoldLispDoc(unsigned int startPos, int length, int /* initStyle */,  		styleNext = styler.StyleAt(i + 1);  		bool atEOL = (ch == '\r' && chNext != '\n') || (ch == '\n');  		if (style == SCE_LISP_OPERATOR) { -			if (ch == '(') { +			if (ch == '(' || ch == '[' || ch == '{') {  				levelCurrent++; -			} else if (ch == ')') { +			} else if (ch == ')' || ch == ']' || ch == '}') {  				levelCurrent--;  			}  		} | 
