aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/LexPerl.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/LexPerl.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/LexPerl.cxx')
-rw-r--r--src/LexPerl.cxx7
1 files changed, 7 insertions, 0 deletions
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);