11function ! s: select (object_type, right_boundary)
2- let left_boundaries = [' _\+\i ' , ' \<' , ' \l\u' , ' \u\u\ze\l' , ' \a\d' , ' \d\a' ]
2+ let left_boundaries = [' _\+\k ' , ' \<' , ' \l\u' , ' \u\u\ze\l' , ' \a\d' , ' \d\a' ]
33 call search (join (left_boundaries, ' \|' ), ' bce' )
44 let start_position = getpos (' .' )
55
@@ -19,12 +19,12 @@ function! s:select(object_type, right_boundary)
1919endfunction
2020
2121function ! s: select_a ()
22- let right_boundaries = [' _' , ' \l\u' , ' \u\u\l' , ' \a\d' , ' \d\a' , ' \i \>' ]
22+ let right_boundaries = [' _' , ' \l\u' , ' \u\u\l' , ' \a\d' , ' \d\a' , ' \k \>' ]
2323 let right_boundary = join (right_boundaries, ' \|' )
2424 let [type , start_position, end_position] = s: select (' a' , right_boundary)
2525 let [_, start_line, start_column, _] = start_position
2626
27- call search (' \i \>' , ' c' )
27+ call search (' \k \>' , ' c' )
2828 if end_position == getpos (' .' ) &&
2929 \ getline (start_line)[start_column - 2 ] = ~# ' _'
3030 let start_position[2 ] -= 1
@@ -49,7 +49,7 @@ function! s:select_a()
4949endfunction
5050
5151function ! s: select_i ()
52- let right_boundaries = [' \i_ ' , ' \l\u' , ' \u\u\l' , ' \a\d' , ' \d\a' , ' \i \>' ]
52+ let right_boundaries = [' \k_ ' , ' \l\u' , ' \u\u\l' , ' \a\d' , ' \d\a' , ' \k \>' ]
5353 return s: select (' i' , join (right_boundaries, ' \|' ))
5454endfunction
5555
0 commit comments