diff options
author | nyamatongwe <unknown> | 2009-04-12 05:59:50 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2009-04-12 05:59:50 +0000 |
commit | 001550a0de196eca314eea792bfada74a19773b1 (patch) | |
tree | 2179411162e59d989ae8e2c44db37c5c74ac813d /src/LexD.cxx | |
parent | 67db09ae242cf51a4aab5fe8cb36bb8e7b11c7dd (diff) | |
download | scintilla-mirror-001550a0de196eca314eea792bfada74a19773b1.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.cxx | 3 |
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; |