Skip to content

Commit

Permalink
Indent supports boolean attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
othree committed Mar 9, 2018
1 parent 040d695 commit 6f297f9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions indent/html.vim
Original file line number Diff line number Diff line change
Expand Up @@ -921,6 +921,9 @@ func! s:InsideTag(foundHtmlString)
else
let idx = match(text, '\s\zs[_a-zA-Z0-9-]\+="')
endif
if idx == -1
let idx = match(text, '<\w\+\(-\w\+\)*\s\zs\w')
endif
if idx == -1
let idx = match(text, '<\w\+\(-\w\+\)*')
if idx >= 0
Expand Down

0 comments on commit 6f297f9

Please sign in to comment.