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/LexPerl.cxx | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/LexPerl.cxx') diff --git a/src/LexPerl.cxx b/src/LexPerl.cxx index 4853460bf..22b455d0e 100644 --- a/src/LexPerl.cxx +++ b/src/LexPerl.cxx @@ -1184,8 +1184,15 @@ static void FoldPerlDoc(unsigned int startPos, int length, int, WordList *[], bool foldComment = styler.GetPropertyInt("fold.comment") != 0; bool foldCompact = styler.GetPropertyInt("fold.compact", 1) != 0; // Custom folding of POD and packages + + // property fold.perl.pod + // Enable folding Pod blocks when using the Perl lexer. bool foldPOD = styler.GetPropertyInt("fold.perl.pod", 1) != 0; + + // property fold.perl.package + // Enable folding packages when using the Perl lexer. bool foldPackage = styler.GetPropertyInt("fold.perl.package", 1) != 0; + unsigned int endPos = startPos + length; int visibleChars = 0; int lineCurrent = styler.GetLine(startPos); -- cgit v1.2.3