diff options
author | nyamatongwe <unknown> | 2009-05-21 23:12:56 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-05-21 23:12:56 +0000 |
commit | 411244899480c0ece826f6308d03169f1fa8a2b7 (patch) | |
tree | 32fd83938da9b613594811a7d6b3f2ec87ed864b /src/LexLisp.cxx | |
parent | 5340cc1e6de155f299ecf16fc257d5e0f5d5c511 (diff) | |
download | scintilla-mirror-411244899480c0ece826f6308d03169f1fa8a2b7.tar.gz |
Feature Request #2794989 LexLisp: Treat [] and {} as balanced operators
from Eric Kidd.
Diffstat (limited to 'src/LexLisp.cxx')
-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--; } } |