Permalink
Browse files

check for ampersand in forward-to-next cases

fixes #37
  • Loading branch information...
bkad committed Mar 13, 2018
1 parent b2ee1f6 commit 32dc4fe68b704cea017fc915b8818ca1abf0ee2e
Showing with 1 addition and 1 deletion.
  1. +1 −1 autoload/camelcasemotion.vim
@@ -33,7 +33,7 @@ call add(s:forward_to_next_list, '<\D') " word
call add(s:forward_to_next_list, '^$') " empty line
call add(s:forward_to_next_list, '%(^|\s)+\zs\k@!\S') " non-keyword after whitespaces
call add(s:forward_to_next_list, '><') " non-whitespace after word
call add(s:forward_to_next_list, '[\{\}\[\]\(\)\<\>]') " brackets, parens, braces
call add(s:forward_to_next_list, '[\{\}\[\]\(\)\<\>\&]') " brackets, parens, braces
call add(s:forward_to_next_list, '\d+') " number
call add(s:forward_to_next_list, '\l\+\zs%(\u|\d)') " lowercase followed by capital letter or number
call add(s:forward_to_next_list, '\u+\zs%(\u\l|\d)') " ALLCAPS followed by CamelCase or number

0 comments on commit 32dc4fe

Please sign in to comment.