Sun, 20 Nov 2022 20:46:37 -0600
fix indented heredoc inline sql
.vim/after/syntax/perl/custom.vim | file | annotate | diff | comparison | revisions |
--- a/.vim/after/syntax/perl/custom.vim +++ b/.vim/after/syntax/perl/custom.vim @@ -23,3 +23,7 @@ hi! def link podOrdinary Comment hi! def link podCommand SpecialComment hi! def link podCmdText Question hi! def link podFormat StorageClass + +syntax region perlHereDocSQL matchgroup=perlStringStartEnd start=+<<\~\s*'\z(\%(END_\)\=SQL\)'+ end='^\s*\z1$' contains=@SQL +syntax region perlHereDocSQL matchgroup=perlStringStartEnd start='<<\~\s*"\z(\%(END_\)\=SQL\)"' end='^\s*\z1$' contains=@perlInterpDQ,@SQL +syntax region perlHereDocSQL matchgroup=perlStringStartEnd start='<<\~\s*\z(\%(END_\)\=SQL\)' end='^\s*\z1$' contains=@perlInterpDQ,@SQL