Hi,
I've looked into Vim's source to figure out if the "END" in "augroup END" is
case sensitive, and it isn't.
This patch fixes it for Vim's indent file:
diff --git i/runtime/indent/vim.vim w/runtime/indent/vim.vim
index ff4af02..73839c4 100644
--- i/runtime/indent/vim.vim
+++ w/runtime/indent/vim.vim
@@ -89,7 +89,7 @@ function GetVimIndentIntern()
" Subtract a 'shiftwidth' on a :endif, :endwhile, :catch, :finally, :endtry,
" :endfun, :else and :augroup END.
- if cur_text =~ '^\s*\(ene\@!\|cat\|fina\|el\|aug\%[roup]\s*!\=\s\+END\)'
+ if cur_text =~
'^\s*\(ene\@!\|cat\|fina\|el\|aug\%[roup]\s*!\=\s\+[eE][nN][dD]\)'
let ind = ind - &sw
endif
(This came up in a PR to improve ctags vim parser:
https://github.com/fishman/ctags/pull/146)
Regards,
Daniel.
--
http://daniel.hahler.de/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.