Mercurial > vim
diff runtime/indent/vhdl.vim @ 2282:a888ed7ba375 vim73
Make updating text for conceal mode simpler. A few compiler warning fixes.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 02 Jul 2010 20:20:09 +0200 |
parents | b9740fb41986 |
children | eb7be7b075a6 |
line wrap: on
line diff
--- a/runtime/indent/vhdl.vim +++ b/runtime/indent/vhdl.vim @@ -1,8 +1,8 @@ " VHDL indent ('93 syntax) " Language: VHDL " Maintainer: Gerald Lai <laigera+vim?gmail.com> -" Version: 1.54 -" Last Change: 2007 Aug 17 +" Version: 1.55 +" Last Change: 2010 Jun 27 " URL: http://www.vim.org/scripts/script.php?script_id=1450 " only load this indent file when no other was loaded @@ -156,7 +156,7 @@ function GetVHDLindent() let ps = getline(pn) while pn > 0 let t = indent(pn) - if ps !~ '^\s*--' && t < ind + if ps !~ '^\s*--' && (t < ind || (t == ind && m == 3)) " make sure one of these is true " keywords: variable + "<=" without ";" ending " where: start of previous non-comment line