.config/nvim/after/syntax/perl/custom.vim

changeset 1029
9265f8508e4c
equal deleted inserted replaced
1028:77e65ab97892 1029:9265f8508e4c
1 " this keeps indents from jumping more than one level
2 let b:indent_use_syntax = 0
3
4 syn sync minlines=1500
5
6 " Weird behavior in sql heredocs
7 syn clear sqlFold
8
9 " fix highlight-all-pragma for vN.NN
10 syn match perlStatementInclude "\<\%(use\|no\)\s\+v\(\d\|.\)\+"
11
12 " Add match for =method and =func from Pod::Weaver
13 syn match podCommand "^=method" contained nextgroup=podCmdText contains=@NoSpell
14 syn match podCommand "^=func" contained nextgroup=podCmdText contains=@NoSpell
15
16 " Add matches for contrib/function-parameters.vim, but don't apply to fat-arrow cases
17 syn match perlFunction +\<method\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
18 syn match perlFunction +\<fun\>\(\_s*=>\)\@!\_s*+ nextgroup=perlSubName
19
20 " Tweak some colors, making POD stand out less
21 hi! def link perlPOD Comment
22 hi! def link podOrdinary Comment
23 hi! def link podCommand SpecialComment
24 hi! def link podCmdText Question
25 hi! def link podFormat StorageClass
26
27 syntax region perlHereDocSQL matchgroup=perlStringStartEnd start=+<<\~\s*'\z(\%(END_\)\=SQL\)'+ end='^\s*\z1$' contains=@SQL
28 syntax region perlHereDocSQL matchgroup=perlStringStartEnd start='<<\~\s*"\z(\%(END_\)\=SQL\)"' end='^\s*\z1$' contains=@perlInterpDQ,@SQL
29 syntax region perlHereDocSQL matchgroup=perlStringStartEnd start='<<\~\s*\z(\%(END_\)\=SQL\)' end='^\s*\z1$' contains=@perlInterpDQ,@SQL

mercurial