Skip to content

Commit

Permalink
Fix SQL embed pattern for ruby syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
AndrewRadev committed May 16, 2018
1 parent 9200569 commit 6806d45
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion after/syntax/ruby.vim
Expand Up @@ -4,4 +4,4 @@ syntax include @SQL syntax/sql.vim
let b:current_syntax = s:bcs

" match optional, surrounding single or double quote and any whitespace in the heredoc name
syntax region rubyHereDocSQL matchgroup=rubyOperator start=+<<-\?\(['"]\?\)\z(\s*SQL\s*\)\1+ end=+^\s*\z1$+ contains=@SQL
syntax region rubyHereDocSQL matchgroup=rubyOperator start=+<<[-~]\?\(['"]\?\)\z(\s*SQL\s*\)\1+ end=+^\s*\z1$+ contains=@SQL

0 comments on commit 6806d45

Please sign in to comment.