Skip to content

Commit 01f7804

Browse files
authored
keyword atom
This is used by `\<` and `expand('<cword>')`
1 parent 7835f3d commit 01f7804

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

indent/javascript.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ function s:current_char()
6868
endfunction
6969

7070
function s:token()
71-
return s:current_char() =~ '\w' ? expand('<cword>') : s:current_char()
71+
return s:current_char() =~ '\k' ? expand('<cword>') : s:current_char()
7272
endfunction
7373

7474
" NOTE: moves the cursor

0 commit comments

Comments
 (0)