Skip to content

Instantly share code, notes, and snippets.

@petdance
Created September 28, 2016 15:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save petdance/647240cdbc4521f3718e94dc8781b3a8 to your computer and use it in GitHub Desktop.
Save petdance/647240cdbc4521f3718e94dc8781b3a8 to your computer and use it in GitHub Desktop.
" ~/.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