Skip to content

Commit 6f297f9

Browse files
committed
Indent supports boolean attribute
1 parent 040d695 commit 6f297f9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

indent/html.vim

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -921,6 +921,9 @@ func! s:InsideTag(foundHtmlString)
921921
else
922922
let idx = match(text, '\s\zs[_a-zA-Z0-9-]\+="')
923923
endif
924+
if idx == -1
925+
let idx = match(text, '<\w\+\(-\w\+\)*\s\zs\w')
926+
endif
924927
if idx == -1
925928
let idx = match(text, '<\w\+\(-\w\+\)*')
926929
if idx >= 0

0 commit comments

Comments
 (0)