Skip to content

Commit

Permalink
end brackets now required
Browse files Browse the repository at this point in the history
  • Loading branch information
pbrisbin committed Apr 27, 2012
1 parent 0ff8885 commit f084812
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion syntax/hamlet.vim
Expand Up @@ -21,7 +21,7 @@ syn match hmComment display /\(\$#.*$\|<!--.*-->\)/

" We use the leading anchor (^) to prevent invalid nesting from
" highlighting; however, this prevents oneliner QQs from working.
syn match hmKey /^\s*\\\?\s*<[^!][^>$]*>\?/ contains=hmVar,hmRoute,hmAttr,hmString,hmCond,hmAttrs
syn match hmKey /^\s*\\\?\s*<[^!][^>]*>/ contains=hmVar,hmRoute,hmAttr,hmString,hmCond,hmAttrs
syn match hmAttr contained /\(\.\|#\)[^ >]*/ contains=hmString,hmVar,hmRoute,hmLang
syn match hmCond contained /:[^:]\+:\([^ ]*"[^"]*"\|[^ >]*\)/ contains=hmString,hmNumber,hmCondOp,hmHsOp

Expand Down
2 changes: 1 addition & 1 deletion test/test.hamlet
Expand Up @@ -50,7 +50,7 @@ $# Attributes:

$# Conditional attributes:

<input type=checkbox :isChecked:checked .other
<input type=checkbox :isChecked:checked .other>

<p :isRed:style="color: red;" #other>

Expand Down
2 changes: 1 addition & 1 deletion test/test.hs
Expand Up @@ -16,7 +16,7 @@
<p>Go to
<a href="@{RoutR}">

<p .something #{what}
<p .something #{what}>

<div id="accordion">
$forall tagGroup <- tagGroups
Expand Down

0 comments on commit f084812

Please sign in to comment.