diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-13 22:28:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-13 22:28:56 +0000 |
commit | 9ba0eb850c0f4c94df3b7f7461610bf0b073f712 (patch) | |
tree | 11638af8ad8ecdfd337a6db15914b2e2cdff3aea /runtime/indent | |
parent | bac97eb8ae6b067466cab0481cac2f25b335ffe7 (diff) | |
download | vim-git-9ba0eb850c0f4c94df3b7f7461610bf0b073f712.tar.gz |
updated for version 7.0084v7.0084
Diffstat (limited to 'runtime/indent')
-rw-r--r-- | runtime/indent/lua.vim | 8 | ||||
-rw-r--r-- | runtime/indent/mupad.vim | 70 | ||||
-rw-r--r-- | runtime/indent/xsd.vim | 13 |
3 files changed, 55 insertions, 36 deletions
diff --git a/runtime/indent/lua.vim b/runtime/indent/lua.vim index 2ea16dbf8..ace7fd1a7 100644 --- a/runtime/indent/lua.vim +++ b/runtime/indent/lua.vim @@ -2,7 +2,13 @@ " Language: Lua script " Maintainer: Marcus Aurelius Farias <marcus.cf 'at' bol.com.br> " First Author: Max Ischenko <mfi 'at' ukr.net> -" Last Change: 2004 Aug 29 +" Last Change: 2005 Jun 09 + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif +let b:did_indent = 1 " Only define the function once. if exists("*GetLuaIndent") diff --git a/runtime/indent/mupad.vim b/runtime/indent/mupad.vim index b74f034da..aeef520e6 100644 --- a/runtime/indent/mupad.vim +++ b/runtime/indent/mupad.vim @@ -1,35 +1,35 @@ -" Vim indent file
-" Language: MuPAD source files
-" Maintainer: Dave Silvia <dsilvia@mchsi.com>
-" Filenames: *.mu
-" Date: 6/30/2004
-
-if exists("b:did_indent")
- finish
-endif
-
-let b:did_indent = 1
-
-runtime indent/GenericIndent.vim
-
-let b:indentStmts=''
-let b:dedentStmts=''
-let b:allStmts=''
-" NOTE: b:indentStmts, b:dedentStmts, and b:allStmts need to be initialized
-" to '' before callin the functions because 'indent.vim' explicitly
-" 'unlet's b:did_indent. This means that the lists will compound if
-" you change back and forth between buffers. This is true as of
-" version 6.3, 6/23/2004.
-setlocal indentexpr=GenericIndent()
-setlocal indentkeys==end_proc,=then,=else,=elif,=end_if,=end_case,=until,=end_repeat,=end_domain,=end_for,=end_while,=end,o,O
-
-call GenericIndentStmts('begin,if,then,else,elif,case,repeat,until,domain,do')
-call GenericDedentStmts('end_proc,then,else,elif,end_if,end_case,until,end_repeat,end_domain,end_for,end_while,end')
-call GenericAllStmts()
-
-
-" TODO: More comprehensive indentstmt, dedentstmt, and indentkeys values.
-"
-" BUGS: You tell me! Probably. I just haven't found one yet or haven't been
-" told about one.
-"
+" Vim indent file +" Language: MuPAD source files +" Maintainer: Dave Silvia <dsilvia@mchsi.com> +" Filenames: *.mu +" Date: 6/30/2004 + +if exists("b:did_indent") + finish +endif + +let b:did_indent = 1 + +runtime indent/GenericIndent.vim + +let b:indentStmts='' +let b:dedentStmts='' +let b:allStmts='' +" NOTE: b:indentStmts, b:dedentStmts, and b:allStmts need to be initialized +" to '' before callin the functions because 'indent.vim' explicitly +" 'unlet's b:did_indent. This means that the lists will compound if +" you change back and forth between buffers. This is true as of +" version 6.3, 6/23/2004. +setlocal indentexpr=GenericIndent() +setlocal indentkeys==end_proc,=then,=else,=elif,=end_if,=end_case,=until,=end_repeat,=end_domain,=end_for,=end_while,=end,o,O + +call GenericIndentStmts('begin,if,then,else,elif,case,repeat,until,domain,do') +call GenericDedentStmts('end_proc,then,else,elif,end_if,end_case,until,end_repeat,end_domain,end_for,end_while,end') +call GenericAllStmts() + + +" TODO: More comprehensive indentstmt, dedentstmt, and indentkeys values. +" +" BUGS: You tell me! Probably. I just haven't found one yet or haven't been +" told about one. +" diff --git a/runtime/indent/xsd.vim b/runtime/indent/xsd.vim new file mode 100644 index 000000000..59e0b6087 --- /dev/null +++ b/runtime/indent/xsd.vim @@ -0,0 +1,13 @@ +" Vim indent file +" Language: .xsd files (XML Schema) +" Maintainer: Nobody +" Last Change: 2005 Jun 09 + +" Only load this indent file when no other was loaded. +if exists("b:did_indent") + finish +endif + +" Use XML formatting rules +runtime! indent/xml.vim + |