aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2018-07-15 12:04:02 +1200
committerTom Ryder <tom@sanctum.geek.nz>2018-07-15 12:04:02 +1200
commite7bc8cece5da8400e45f7f66f2be9a3b2c34ddc4 (patch)
tree8dec954579302570a00d5e412dd7e3a091294c5e
parent02e99cb699f7ea22851004e7bd8acff3f07823a2 (diff)
downloaddotfiles-e7bc8cece5da8400e45f7f66f2be9a3b2c34ddc4.tar.gz
dotfiles-e7bc8cece5da8400e45f7f66f2be9a3b2c34ddc4.zip
Use non-capturing groups in VimL where appropriate
-rw-r--r--vim/scripts.vim4
1 files changed, 2 insertions, 2 deletions
diff --git a/vim/scripts.vim b/vim/scripts.vim
index 44b07255..f28e29a9 100644
--- a/vim/scripts.vim
+++ b/vim/scripts.vim
@@ -44,7 +44,7 @@ elseif s:line =~# '\m\<bash\>'
setfiletype sh
" Korn shell
-elseif s:line =~# '\m\<\(m\|pd\)\=ksh\(93\)\=\>'
+elseif s:line =~# '\m\<\%(m\|pd\)\=ksh\%(93\)\=\>'
let b:is_kornshell = 1
setfiletype sh
@@ -54,7 +54,7 @@ elseif s:line =~# '\m\<sh\>'
setfiletype sh
" TCL
-elseif s:line =~# '\m\<\(tcl\|wish\)\>'
+elseif s:line =~# '\m\<\%(tcl\|wish\)\>'
setfiletype tcl
endif