Skip to content

Commit 5cd1010

Browse files
committed
Support loose attribute value
1 parent cbb91a0 commit 5cd1010

File tree

2 files changed

+250
-79
lines changed

2 files changed

+250
-79
lines changed

grammar.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ module.exports = grammar({
124124

125125
attribute_name: _ => /[^<>"'/=\s]+/,
126126

127-
attribute_value: _ => /[^<>"'=\s]+/,
127+
attribute_value: _ => /[^<>"'=\s][^>\s]*/,
128128

129129
// An entity can be named, numeric (decimal), or numeric (hexacecimal). The
130130
// longest entity name is 29 characters long, and the HTML spec says that

0 commit comments

Comments
 (0)