diff options
author | Patrick Spek <p.spek@tyil.nl> | 2017-06-29 12:16:02 +0200 |
---|---|---|
committer | Patrick Spek <p.spek@tyil.nl> | 2017-06-29 12:16:02 +0200 |
commit | 1abb4e2b96666d1410a2b3146e465f6606f0dfda (patch) | |
tree | 934a41e34ae77120434555efcb3241d42f68fd95 | |
parent | e4df71b24e448cf898a7820c3b7ca8eede372a85 (diff) | |
download | camelcasemotion-1abb4e2b96666d1410a2b3146e465f6606f0dfda.tar.gz camelcasemotion-1abb4e2b96666d1410a2b3146e465f6606f0dfda.tar.bz2 |
Add - and = as word delimiters
-rw-r--r-- | autoload/camelcasemotion.vim | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/autoload/camelcasemotion.vim b/autoload/camelcasemotion.vim index d24c820..6860bf8 100644 --- a/autoload/camelcasemotion.vim +++ b/autoload/camelcasemotion.vim @@ -26,6 +26,7 @@ call add(s:forward_to_end_list, '\u\l\+') " CamelCase call add(s:forward_to_end_list, '\%(\a\|\d\)\+\ze[-_]') " underscore_notation call add(s:forward_to_end_list, '\%(\k\@!\S\)\+') " non-keyword call add(s:forward_to_end_list, '\%([-_]\@!\k\)\+\>') " word +call add(s:forward_to_end_list, '[-=]') " -, = call add(s:forward_to_end_list, "[\"'`]") " quotes let s:forward_to_end = join(s:forward_to_end_list, '\|') @@ -41,6 +42,7 @@ call add(s:forward_to_next_list, '\u\+\zs\%(\u\l\|\d\)') " ALLC call add(s:forward_to_next_list, '\u\l\+') " CamelCase call add(s:forward_to_next_list, '\u\@<!\u\+') " ALLCAPS call add(s:forward_to_next_list, '[-_]\zs\%(\u\+\|\u\l\+\|\l\+\|\d\+\)') " underscored followed by ALLCAPS, CamelCase, lowercase, or number +call add(s:forward_to_next_list, '[-=]') " -, = call add(s:forward_to_next_list, "[\"'`]") " quotes let s:forward_to_next = join(s:forward_to_next_list, '\|') |