aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexD.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/LexD.cxx')
-rw-r--r--src/LexD.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/LexD.cxx b/src/LexD.cxx
index 95be129d5..850642111 100644
--- a/src/LexD.cxx
+++ b/src/LexD.cxx
@@ -268,6 +268,9 @@ static bool IsStreamCommentStyle(int style) {
static void FoldDoc(unsigned int startPos, int length, int initStyle, Accessor &styler) {
bool foldComment = styler.GetPropertyInt("fold.comment") != 0;
bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0;
+
+ // property lexer.d.fold.at.else
+ // This option enables D folding on a "} else {" line of an if statement.
bool foldAtElse = styler.GetPropertyInt("lexer.d.fold.at.else",
styler.GetPropertyInt("fold.at.else", 0)) != 0;
unsigned int endPos = startPos + length;