blob: 307aaf047fb25c957f94b133cdcd56c40a327b7a [file] [log] [blame]
Bram Moolenaar9ba0eb82005-06-13 22:28:56 +00001" Vim indent file
2" Language: MuPAD source files
3" Maintainer: Dave Silvia <dsilvia@mchsi.com>
4" Filenames: *.mu
5" Date: 6/30/2004
6
7if exists("b:did_indent")
8 finish
9endif
10
11let b:did_indent = 1
12
13runtime indent/GenericIndent.vim
14
15let b:indentStmts=''
16let b:dedentStmts=''
17let 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.
23setlocal indentexpr=GenericIndent()
24setlocal indentkeys==end_proc,=then,=else,=elif,=end_if,=end_case,=until,=end_repeat,=end_domain,=end_for,=end_while,=end,o,O
25
26call GenericIndentStmts('begin,if,then,else,elif,case,repeat,until,domain,do')
27call GenericDedentStmts('end_proc,then,else,elif,end_if,end_case,until,end_repeat,end_domain,end_for,end_while,end')
28call GenericAllStmts()
29
30
31" TODO: More comprehensive indentstmt, dedentstmt, and indentkeys values.
32"
33" BUGS: You tell me! Probably. I just haven't found one yet or haven't been
34" told about one.
Bram Moolenaarc9b4b052006-04-30 18:54:39 +000035"