aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexLisp.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexLisp.cxx')
-rw-r--r--src/LexLisp.cxx6
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--;
}
}