We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab907f3 commit 040d695Copy full SHA for 040d695
1 file changed
indent/html.vim
@@ -921,6 +921,12 @@ func! s:InsideTag(foundHtmlString)
921
else
922
let idx = match(text, '\s\zs[_a-zA-Z0-9-]\+="')
923
endif
924
+ if idx == -1
925
+ let idx = match(text, '<\w\+\(-\w\+\)*')
926
+ if idx >= 0
927
+ let idx = idx + shiftwidth()
928
+ endif
929
930
if idx > 0
931
" Found the attribute. TODO: assumes spaces, no Tabs.
932
return idx
0 commit comments