home *** CD-ROM | disk | FTP | other *** search
/ vim.ftp.fu-berlin.de / 2015-02-03.vim.ftp.fu-berlin.de.tar / vim.ftp.fu-berlin.de / runtime / dos / indent / mupad.vim < prev    next >
Encoding:
Text File  |  2007-10-26  |  1.2 KB  |  36 lines

  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.
  35. "
  36.