summaryrefslogtreecommitdiffstats
path: root/runtime/indent/mma.vim
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2006-04-30 18:54:39 +0000
committerBram Moolenaar <Bram@vim.org>2006-04-30 18:54:39 +0000
commitc9b4b05b3544b434730eb218e848a1a441d5ffb2 (patch)
treec1550ddf398d2030ed25ee98e8342fcb41ac1c87 /runtime/indent/mma.vim
parentaa35dd1667c5903cdcc32ebe10f27bc6683c68a1 (diff)
updated for version 7.0gv7.0g
Diffstat (limited to 'runtime/indent/mma.vim')
-rw-r--r--runtime/indent/mma.vim14
1 files changed, 7 insertions, 7 deletions
diff --git a/runtime/indent/mma.vim b/runtime/indent/mma.vim
index 703e7dafd9..356b87618d 100644
--- a/runtime/indent/mma.vim
+++ b/runtime/indent/mma.vim
@@ -12,7 +12,7 @@
" let filetype_m="mma"
"
" Credits:
-" o steve hacked this out of a random indent file in the Vim 6.1
+" o steve hacked this out of a random indent file in the Vim 6.1
" distribution that he no longer remembers...sh.vim? Thanks!
" Only load this indent file when no other was loaded.
@@ -30,7 +30,7 @@ if exists("*GetMmaIndent")
endif
function GetMmaIndent()
-
+
" Hit the start of the file, use zero indent.
if v:lnum == 0
return 0
@@ -38,21 +38,21 @@ function GetMmaIndent()
" Find a non-blank line above the current line.
let lnum = prevnonblank(v:lnum - 1)
-
- " use indenting as a base
+
+ " use indenting as a base
let ind = indent(v:lnum)
let lnum = v:lnum
-
+
" if previous line has an unmatched bracket, or ( indent.
" doesn't do multiple parens/blocks/etc...
-
+
" also, indent only if this line if this line isn't starting a new
" block... TODO - fix this with indentkeys?
if getline(v:lnum-1) =~ '\\\@<!\%(\[[^\]]*\|([^)]*\|{[^}]*\)$' && getline(v:lnum) !~ '\s\+[\[({]'
let ind = ind+&sw
endif
- " if this line had unmatched closing block,
+ " if this line had unmatched closing block,
" indent to the matching opening block
if getline(v:lnum) =~ '[^[]*]\s*$'
" move to the closing bracket