Mirror of the Vim source from https://github.com/vim/vim
修訂 | 19ef2bbf569cba64ae5125d5b1f3f205efc25e89 (tree) |
---|---|
時間 | 2008-02-26 04:46:51 |
作者 | vimboss |
Commiter | vimboss |
updated for version 7.1-263
@@ -1,7 +1,7 @@ | ||
1 | 1 | " Vim support file to switch on loading indent files for file types |
2 | 2 | " |
3 | 3 | " Maintainer: Bram Moolenaar <Bram@vim.org> |
4 | -" Last Change: 2005 Mar 28 | |
4 | +" Last Change: 2008 Feb 22 | |
5 | 5 | |
6 | 6 | if exists("did_indent_on") |
7 | 7 | finish |
@@ -15,11 +15,17 @@ | ||
15 | 15 | exe b:undo_indent |
16 | 16 | unlet! b:undo_indent b:did_indent |
17 | 17 | endif |
18 | - if expand("<amatch>") != "" | |
18 | + let s = expand("<amatch>") | |
19 | + if s != "" | |
19 | 20 | if exists("b:did_indent") |
20 | 21 | unlet b:did_indent |
21 | 22 | endif |
22 | - runtime! indent/<amatch>.vim | |
23 | + | |
24 | + " When there is a dot it is used to separate filetype names. Thus for | |
25 | + " "aaa.bbb" load "indent/aaa.vim" and then "indent/bbb.vim". | |
26 | + for name in split(s, '\.') | |
27 | + exe 'runtime! indent/' . name . '.vim' | |
28 | + endfor | |
23 | 29 | endif |
24 | 30 | endfunc |
25 | 31 | augroup END |
@@ -667,6 +667,8 @@ | ||
667 | 667 | static int included_patches[] = |
668 | 668 | { /* Add new patch number below this line */ |
669 | 669 | /**/ |
670 | + 263, | |
671 | +/**/ | |
670 | 672 | 262, |
671 | 673 | /**/ |
672 | 674 | 261, |