Merge branch 'vim-with-runtime' into feat/quickfix-title
[vim_extended.git] / runtime / indent / mupad.vim
blob307aaf047fb25c957f94b133cdcd56c40a327b7a
1 " Vim indent file
2 " Language:    MuPAD source files
3 " Maintainer:  Dave Silvia <dsilvia@mchsi.com>
4 " Filenames:   *.mu
5 " Date:        6/30/2004
7 if exists("b:did_indent")
8         finish
9 endif
11 let b:did_indent = 1
13 runtime indent/GenericIndent.vim
15 let b:indentStmts=''
16 let b:dedentStmts=''
17 let b:allStmts=''
18 " NOTE:  b:indentStmts, b:dedentStmts, and b:allStmts need to be initialized
19 "        to '' before callin the functions because 'indent.vim' explicitly
20 "        'unlet's b:did_indent.  This means that the lists will compound if
21 "        you change back and forth between buffers.  This is true as of
22 "        version 6.3, 6/23/2004.
23 setlocal indentexpr=GenericIndent()
24 setlocal indentkeys==end_proc,=then,=else,=elif,=end_if,=end_case,=until,=end_repeat,=end_domain,=end_for,=end_while,=end,o,O
26 call GenericIndentStmts('begin,if,then,else,elif,case,repeat,until,domain,do')
27 call GenericDedentStmts('end_proc,then,else,elif,end_if,end_case,until,end_repeat,end_domain,end_for,end_while,end')
28 call GenericAllStmts()
31 " TODO:  More comprehensive indentstmt, dedentstmt, and indentkeys values.
33 " BUGS:  You tell me!  Probably.  I just haven't found one yet or haven't been
34 "        told about one.