Skip to content

Commit 83cb340

Browse files
committed
add a comment; restore @ for more isalpha chars
1 parent 6bcb606 commit 83cb340

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

llvm/utils/vim/ftplugin/llvm.vim

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,11 @@ setlocal softtabstop=2 shiftwidth=2
1111
setlocal expandtab
1212
setlocal comments+=:;
1313
setlocal commentstring=;\ %s
14-
setlocal iskeyword=%,@-@,$,a-z,A-Z,48-57,_,.,-
14+
" We treat sequences of the following characters as forming 'keywords', with
15+
" the aim of easing movement around LLVM identifiers:
16+
" * identifier prefixes: '%' and '@' (@-@)
17+
" * all characters where isalpha() returns TRUE (@)
18+
" * the digits 0-9 (48-57)
19+
" * other characters that may form identifiers: '_', '.', '-', '$'
20+
" Comment this out to restore the default behaviour
21+
setlocal iskeyword=%,@-@,@,48-57,_,.,-,$

0 commit comments

Comments
 (0)