Skip to content

Commit

Permalink
Version 1.54: Minor bug fix over v1.53
Browse files Browse the repository at this point in the history
  • Loading branch information
Gerald Lai authored and vim-scripts committed Oct 18, 2010
1 parent 6eff3b1 commit 972390c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions indent/vhdl.vim
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
" VHDL indent ('93 syntax)
" Language: VHDL
" Maintainer: Gerald Lai <laigera+vim?gmail.com>
" Version: 1.53
" Last Change: 2007 Aug 16
" Version: 1.54
" Last Change: 2007 Aug 17
" URL: http://www.vim.org/scripts/script.php?script_id=1450

" only load this indent file when no other was loaded
Expand Down Expand Up @@ -78,7 +78,7 @@ function GetVHDLindent()
if curs =~ '^\s*--'
let pn = curn - 1
let ps = getline(pn)
if curs =~ '--\s' && ps =~ '--'
if curs =~ '^\s*--\s' && ps =~ '--'
return indent(pn) + stridx(substitute(ps, '^\s*', '', ''), '--')
else
" find nextnonblank line that is not a comment
Expand Down

0 comments on commit 972390c

Please sign in to comment.