2 " Language: MuPAD source files
3 " Maintainer: Dave Silvia <dsilvia@mchsi.com>
7 if exists("b:did_indent")
13 runtime indent/GenericIndent.vim
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