fix indented heredoc inline sql

Sun, 20 Nov 2022 20:46:37 -0600

author
Meredith Howard <mhoward@roomag.org>
date
Sun, 20 Nov 2022 20:46:37 -0600
changeset 1007
647fa5ff10a1
parent 1006
12d7a48cef22
child 1008
57b5c867f2a6

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

mercurial