Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Stricter regex for obsolete hash rocket

  • Loading branch information...
commit 93dcf82fb7031aabcb095d8965564edbfe0f5425 1 parent a45110d
@rainux authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 macros/rails.vim
View
6 macros/rails.vim
@@ -28,6 +28,6 @@ autocmd User Bundler
" This will prevent us to ever write it again
highlight ObsoleteHashRocket ctermbg=red guibg=red
au ColorScheme * highlight ObsoleteHashRocket guibg=red
-au BufEnter * match ObsoleteHashRocket /\(:\w\+\s*\)\@<==>/
-au InsertEnter * match ObsoleteHashRocket /\(:\w\+\s*\)\@<==>/
-au InsertLeave * match ObsoleteHashRocket /\(:\w\+\s*\)\@<==>/
+au BufEnter * match ObsoleteHashRocket /\(:\<\w\+\s*\)\@<==>/
+au InsertEnter * match ObsoleteHashRocket /\(\<:\w\+\s*\)\@<==>/
+au InsertLeave * match ObsoleteHashRocket /\(\<:\w\+\s*\)\@<==>/
Please sign in to comment.
Something went wrong with that request. Please try again.