Permalink
Browse files

Fix HTML snippets including attributes in end tag

  • Loading branch information...
Jimmy Mabey
Jimmy Mabey committed May 21, 2012
1 parent 4041918 commit fa30717ad0bc2e5f1308bef38a8ca8c9e653c95b
Showing with 2 additions and 2 deletions.
  1. +2 −2 .vim/snippets/html.snippets
@@ -13,13 +13,13 @@ endsnippet
# Tags
snippet t "Inline element" i
-<${1:tag}>$2</$1>
+<${1:tag}>$2</`!p snip.rv = t[1].split(' ', 2)[0]`>
endsnippet
snippet T "Block element" i
<${1:tag}>
$2
-</$1>
+</`!p snip.rv = t[1].split(' ', 2)[0]`>
endsnippet
snippet a "Attribute"

0 comments on commit fa30717

Please sign in to comment.