Skip to content

Commit

Permalink
Fix eruby issue
Browse files Browse the repository at this point in the history
Wasn't working for `<%= f.text_field ... %>`, for instance. Adding a
group before the keyword pattern that includes a dot or a :: should fix
this.
  • Loading branch information
AndrewRadev committed Aug 19, 2017
1 parent 07fd15f commit 1f23633
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/sideways.vim
Expand Up @@ -81,7 +81,7 @@ autocmd FileType html let b:sideways_definitions = [

autocmd FileType eruby let b:sideways_definitions = [
\ {
\ 'start': '<%=\=\s*\k\{1,} ',
\ 'start': '<%=\=\s*\%(\k\|\.\|::\)*\k\{1,} ',
\ 'end': '\s*%>',
\ 'delimiter': ',\s*',
\ 'brackets': ['([''"', ')]''"'],
Expand Down

0 comments on commit 1f23633

Please sign in to comment.