From a20c48b229b1b80dbce7d3c359def6a789002fca Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sun, 12 Apr 2009 05:59:50 +0000 Subject: Using comments in lexer code to document meaning of properties. Automatically extract into SciTE doumentation. --- src/LexD.cxx | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/LexD.cxx') 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; -- cgit v1.2.3