<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@
 &quot; Language:     Perl 5
 &quot; Maintainer:   Andy Lester &lt;andy@petdance.com&gt;
 &quot; URL:          http://github.com/petdance/vim-perl/tree/master
-&quot; Last Change:  2009-08-04
+&quot; Last Change:  2009-09-2
 &quot; Contributors: Andy Lester &lt;andy@petdance.com&gt;
 &quot;               Hinrik &#214;rn Sigur&#240;sson &lt;hinrik.sig@gmail.com&gt;
 &quot;               Lukas Mai &lt;l.mai.web.de&gt;
@@ -35,6 +35,33 @@ elseif exists(&quot;b:current_syntax&quot;)
   finish
 endif
 
+&quot;
+&quot; Folding
+
+if exists(&quot;perl_fold&quot;)
+  &quot; Note: this bit must come before the actual highlighting of the &quot;package&quot;
+  &quot; keyword, otherwise this will screw up Pod lines that match /^package/
+  if !exists(&quot;perl_nofold_packages&quot;)
+    syn region perlPackageFold start=&quot;^package \S\+;\s*\%(#.*\)\=$&quot; end=&quot;^1;\=\s*\%(#.*\)\=$&quot; end=&quot;\n\+package&quot;me=s-1 transparent fold keepend
+  endif
+  if !exists(&quot;perl_nofold_subs&quot;)
+    syn region perlSubFold     start=&quot;^\z(\s*\)\&lt;sub\&gt;.*[^};]$&quot; end=&quot;^\z1}\s*\%(#.*\)\=$&quot; transparent fold keepend
+    syn region perlSubFold start=&quot;^\z(\s*\)\&lt;\%(BEGIN\|END\|CHECK\|INIT\|UNITCHECK\)\&gt;.*[^};]$&quot; end=&quot;^\z1}\s*$&quot; transparent fold keepend
+  endif
+
+  if exists(&quot;perl_fold_blocks&quot;)
+    syn region perlBlockFold start=&quot;^\z(\s*\)\%(if\|elsif\|unless\|for\|while\|until\|given\)\s*(.*)\%(\s*{\)\=\s*\%(#.*\)\=$&quot; start=&quot;^\z(\s*\)foreach\s*\%(\%(my\|our\)\=\s*\S\+\s*\)\=(.*)\%(\s*{\)\=\s*\%(#.*\)\=$&quot; end=&quot;^\z1}\s*;\=\%(#.*\)\=$&quot; transparent fold keepend
+    syn region perlBlockFold start=&quot;^\z(\s*\)\%(do\|else\)\%(\s*{\)\=\s*\%(#.*\)\=$&quot; end=&quot;^\z1}\s*while&quot; end=&quot;^\z1}\s*;\=\%(#.*\)\=$&quot; transparent fold keepend
+  endif
+
+  setlocal foldmethod=syntax
+  syn sync fromstart
+else
+  &quot; fromstart above seems to set minlines even if perl_fold is not set.
+  syn sync minlines=0
+endif
+
+
 &quot; POD starts with ^=&lt;word&gt; and ends with ^=cut
 
 if exists(&quot;perl_include_pod&quot;)
@@ -390,32 +417,6 @@ else
   syntax region perlDATA		start=&quot;^__\%(DATA\|END\)__$&quot; skip=&quot;.&quot; end=&quot;.&quot; contains=perlPOD,@perlDATA
 endif
 
-
-&quot;
-&quot; Folding
-
-if exists(&quot;perl_fold&quot;)
-  if !exists(&quot;perl_nofold_packages&quot;)
-    syn region perlPackageFold start=&quot;^package \S\+;\s*\%(#.*\)\=$&quot; end=&quot;^1;\=\s*\%(#.*\)\=$&quot; end=&quot;\n\+package&quot;me=s-1 transparent fold keepend
-  endif
-  if !exists(&quot;perl_nofold_subs&quot;)
-    syn region perlSubFold     start=&quot;^\z(\s*\)\&lt;sub\&gt;.*[^};]$&quot; end=&quot;^\z1}\s*\%(#.*\)\=$&quot; transparent fold keepend
-    syn region perlSubFold start=&quot;^\z(\s*\)\&lt;\%(BEGIN\|END\|CHECK\|INIT\|UNITCHECK\)\&gt;.*[^};]$&quot; end=&quot;^\z1}\s*$&quot; transparent fold keepend
-  endif
-
-  if exists(&quot;perl_fold_blocks&quot;)
-    syn region perlBlockFold start=&quot;^\z(\s*\)\%(if\|elsif\|unless\|for\|while\|until\|given\)\s*(.*)\%(\s*{\)\=\s*\%(#.*\)\=$&quot; start=&quot;^\z(\s*\)foreach\s*\%(\%(my\|our\)\=\s*\S\+\s*\)\=(.*)\%(\s*{\)\=\s*\%(#.*\)\=$&quot; end=&quot;^\z1}\s*;\=\%(#.*\)\=$&quot; transparent fold keepend
-    syn region perlBlockFold start=&quot;^\z(\s*\)\%(do\|else\)\%(\s*{\)\=\s*\%(#.*\)\=$&quot; end=&quot;^\z1}\s*while&quot; end=&quot;^\z1}\s*;\=\%(#.*\)\=$&quot; transparent fold keepend
-  endif
-
-  setlocal foldmethod=syntax
-  syn sync fromstart
-else
-  &quot; fromstart above seems to set minlines even if perl_fold is not set.
-  syn sync minlines=0
-endif
-
-
 command -nargs=+ HiLink hi def link &lt;args&gt;
 
 &quot; The default highlighting.</diff>
      <filename>syntax/perl.vim</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bfd71306636be43d272851ab18c1cc1e61671b7b</id>
    </parent>
  </parents>
  <author>
    <name>Hinrik &#214;rn Sigur&#240;sson</name>
    <email>hinrik.sig@gmail.com</email>
  </author>
  <url>http://github.com/petdance/vim-perl/commit/a0eb392fbe03880e4d875b2b8ad9b41d2efd7b6d</url>
  <id>a0eb392fbe03880e4d875b2b8ad9b41d2efd7b6d</id>
  <committed-date>2009-09-02T09:13:13-07:00</committed-date>
  <authored-date>2009-09-02T04:05:08-07:00</authored-date>
  <message>Fix inappropriate highligting of /^package/ in Pod

This closes issue #16.

Signed-off-by: Andy Lester &lt;andy@petdance.com&gt;</message>
  <tree>a0c3be0f162e8a2e7b2b34ce1798b626cacc3347</tree>
  <committer>
    <name>Andy Lester</name>
    <email>andy@petdance.com</email>
  </committer>
</commit>
