aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexD.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2009-04-12 05:59:50 +0000
committernyamatongwe <devnull@localhost>2009-04-12 05:59:50 +0000
commita20c48b229b1b80dbce7d3c359def6a789002fca (patch)
tree2179411162e59d989ae8e2c44db37c5c74ac813d /src/LexD.cxx
parentd7ce9e5a6a433e570c05d42f796772d233a540b1 (diff)
downloadscintilla-mirror-a20c48b229b1b80dbce7d3c359def6a789002fca.tar.gz
Using comments in lexer code to document meaning of properties.
Automatically extract into SciTE doumentation.
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;