Bram Moolenaar | 9ba0eb8 | 2005-06-13 22:28:56 +0000 | [diff] [blame] | 1 | " Vim indent file |
| 2 | " Language: MuPAD source files |
| 3 | " Maintainer: Dave Silvia <dsilvia@mchsi.com> |
| 4 | " Filenames: *.mu |
| 5 | " Date: 6/30/2004 |
| 6 | |
| 7 | if exists("b:did_indent") |
| 8 | finish |
| 9 | endif |
| 10 | |
| 11 | let b:did_indent = 1 |
| 12 | |
| 13 | runtime indent/GenericIndent.vim |
| 14 | |
| 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 |
| 25 | |
| 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() |
| 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 Moolenaar | c9b4b05 | 2006-04-30 18:54:39 +0000 | [diff] [blame] | 35 | " |