Commits

jb55 committed 7581fcd

Remove possibly buggy indent rule

  • Participants
  • Parent commits d67b5a5

Comments (0)

Files changed (1)

misc/vim/indent/roy.vim

   let ind = indent(lnum)
   let line = getline(lnum)
 
-  let i = match(line, '\.*\(if\)\.*') 
-  if i >= 0
-    let ind = i + &sw
-  endif
-
   if match(line, '\.*{\s*$') >= 0
     let ind += &sw
   endif
     let ind += &sw
   endif
 
-  let i = match(line, '^\s*\(where\|else\|do\)')
+  let i = match(line, '^\s*\(if\|where\|else\|do\)')
   if i >= 0
     let ind += &sw
   endif