comparison runtime/syntax/pod.vim @ 39:c16898406ff2

synchorinize version 7.3.081
author one@zeus.cr.ie.u-ryukyu.ac.jp
date Fri, 17 Dec 2010 17:43:06 +0900
parents 76efa0be13f1
children
comparison
equal deleted inserted replaced
38:e06a1cd7230d 39:c16898406ff2
1 " Vim syntax file 1 " Vim syntax file
2 " Language: Perl POD format 2 " Language: Perl POD format
3 " Maintainer: Scott Bigham <dsb@killerbunnies.org> 3 " Maintainer: Andy Lester <andy@petdance.com>
4 " Last Change: 2007 Jan 21 4 " Previously: Scott Bigham <dsb@killerbunnies.org>
5 " URL: http://github.com/petdance/vim-perl
6 " Last Change: 2009-08-14
5 7
6 " To add embedded POD documentation highlighting to your syntax file, add 8 " To add embedded POD documentation highlighting to your syntax file, add
7 " the commands: 9 " the commands:
8 " 10 "
9 " syn include @Pod <sfile>:p:h/pod.vim 11 " syn include @Pod <sfile>:p:h/pod.vim
23 elseif exists("b:current_syntax") 25 elseif exists("b:current_syntax")
24 finish 26 finish
25 endif 27 endif
26 28
27 " POD commands 29 " POD commands
28 syn match podCommand "^=head[1234]" nextgroup=podCmdText contains=@NoSpell 30 syn match podCommand "^=head[1234]" nextgroup=podCmdText contains=@NoSpell
29 syn match podCommand "^=item" nextgroup=podCmdText contains=@NoSpell 31 syn match podCommand "^=item" nextgroup=podCmdText contains=@NoSpell
30 syn match podCommand "^=over" nextgroup=podOverIndent skipwhite contains=@NoSpell 32 syn match podCommand "^=over" nextgroup=podOverIndent skipwhite contains=@NoSpell
31 syn match podCommand "^=back" contains=@NoSpell 33 syn match podCommand "^=back" contains=@NoSpell
32 syn match podCommand "^=cut" contains=@NoSpell 34 syn match podCommand "^=cut" contains=@NoSpell
33 syn match podCommand "^=pod" contains=@NoSpell 35 syn match podCommand "^=pod" contains=@NoSpell
34 syn match podCommand "^=for" nextgroup=podForKeywd skipwhite contains=@NoSpell 36 syn match podCommand "^=for" nextgroup=podForKeywd skipwhite contains=@NoSpell
35 syn match podCommand "^=begin" nextgroup=podForKeywd skipwhite contains=@NoSpell 37 syn match podCommand "^=begin" nextgroup=podForKeywd skipwhite contains=@NoSpell
36 syn match podCommand "^=end" nextgroup=podForKeywd skipwhite contains=@NoSpell 38 syn match podCommand "^=end" nextgroup=podForKeywd skipwhite contains=@NoSpell
37 39
38 " Text of a =head1, =head2 or =item command 40 " Text of a =head1, =head2 or =item command
39 syn match podCmdText ".*$" contained contains=podFormat,@NoSpell 41 syn match podCmdText ".*$" contained contains=podFormat,@NoSpell
40 42
41 " Indent amount of =over command 43 " Indent amount of =over command