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/LexPerl.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/LexPerl.cxx')
-rw-r--r-- | src/LexPerl.cxx | 7 |
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); |