On Sun, 23 Jun 2013 21:45:38 +0200
Rob Hoelz <[email protected]> wrote:

> Attached is a patch for changes to options for the Perl syntax file.
> 
> Thanks,
> Rob

Someone pointed out a typo in my patch, so here's a new one.

-Rob
# HG changeset patch
# User Rob Hoelz <[email protected]>
# Date 1372016562 -7200
#      Sun Jun 23 21:42:42 2013 +0200
# Node ID 73c0b6990e2f649464f19bfb9e027d4c4c1da37a
# Parent  7a5c346861e11b1a54e5327c133419e85d732e3a
Update syntax.txt documentation for Perl runtime files

diff -r 7a5c346861e1 -r 73c0b6990e2f runtime/doc/syntax.txt
--- a/runtime/doc/syntax.txt	Sun Jun 23 16:40:40 2013 +0200
+++ b/runtime/doc/syntax.txt	Sun Jun 23 21:42:42 2013 +0200
@@ -2197,9 +2197,11 @@
 
 There are a number of possible options to the perl syntax highlighting.
 
-If you use POD files or POD segments, you might: >
-
-	:let perl_include_pod = 1
+Inline POD highlighting is now turned on by default.  If you don't wish
+to have the added complexity of highlighting POD embedded within Perl
+files, you may set the 'perl_include_pod' option to 0: >
+
+	:let perl_include_pod = 0
 
 The reduce the complexity of parsing (and increase performance) you can switch
 off two elements in the parsing of variable names and contents. >
@@ -2252,13 +2254,20 @@
 
 	:let perl_fold_blocks = 1
 
-To avoid folding packages or subs when perl_fold is let, let the appropriate
-variable(s): >
-
-	:unlet perl_nofold_packages
-	:unlet perl_nofold_subs
-
-
+Subroutines are folded by default if 'perl_fold' is set.  If you do not want
+this, you can set 'perl_nofold_subs': >
+
+	:let perl_nofold_subs = 1
+
+Anonymous subroutines are not folded by default; you may enable their folding
+via 'perl_fold_anonymous_subs': >
+
+	:let perl_fold_anonymous_subs = 1
+
+Packages are also folded by default if 'perl_fold' is set.  To disable this
+behavior, set 'perl_nofold_packages': >
+
+	:let perl_nofold_packages = 1
 
 PHP3 and PHP4		*php.vim* *php3.vim* *ft-php-syntax* *ft-php3-syntax*
 

Attachment: signature.asc
Description: PGP signature

Raspunde prin e-mail lui