Skip to content

Commit

Permalink
Add support for PSQL squiggly heredoc highlighting in Ruby
Browse files Browse the repository at this point in the history
  • Loading branch information
Dillon Hafer committed Jun 6, 2016
1 parent 633ccb6 commit 38a4026
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .vim/after/syntax/ruby.vim
Expand Up @@ -8,5 +8,5 @@ syntax include @SQL syntax/pgsql.vim
" Restore buffer's current syntax
let b:current_syntax = s:bcs

" Match Ruby heredoc format (`<<` or `<<-` start tag, whitespace before end tag)
syntax region rubyHereDocSQL matchgroup=Statement start=+<<-\?SQL+ end=+^\s*SQL$+ contains=@SQL
" Match Ruby heredoc format (`<<`, `<<-`, or `<<~` start tag, whitespace before end tag)
syntax region rubyHereDocSQL matchgroup=Statement start=+<<[-~]\?SQL+ end=+^\s*SQL$+ contains=@SQL

0 comments on commit 38a4026

Please sign in to comment.