Created
September 28, 2016 15:20
-
-
Save petdance/647240cdbc4521f3718e94dc8781b3a8 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" ~/.vim/after/syntax/perl.vim | |
let s:bcs = b:current_syntax | |
unlet b:current_syntax | |
syntax include @SQL syntax/sql.vim | |
let b:current_syntax = s:bcs | |
syntax region perlHereDocSQL start=+<<['"]SQL['"].*;\s*$+ end=+^SQL$+ contains=@SQL | |
syntax region perlHereDocSQL start=+<<['"]SQL_TEXT['"].*;\s*$+ end=+^SQL_TEXT$+ contains=@SQL | |
syntax region perlHereDocSQL start=+<<['"]__SQL__['"].*;\s*$+ end=+^__SQL__$+ contains=@SQL |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment