Skip to content

Commit

Permalink
feat: unencosed content no longer requires commas w/ multiple attrs (#87
Browse files Browse the repository at this point in the history
)

(cherry picked from commit 7ca2017)
  • Loading branch information
DylanPiercey committed Oct 12, 2021
1 parent 11b0fa8 commit fd04465
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 16 deletions.
15 changes: 0 additions & 15 deletions src/states/OPEN_TAG.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,6 @@ export const OPEN_TAG = Parser.createState({
}
}
}

if (
tag.hasUnenclosedWhitespace &&
attributes.length > 1
) {
for (let i = 0; i < attributes.length - 1; i++) {
if (!attributes[i].endedWithComma) {
this.notifyError(
attributes[i].pos,
"COMMAS_REQUIRED",
"commas are required to separate all attributes when using complex attribute values with un-enclosed whitespace"
);
}
}
}
}

tag.expectedCloseTagName = this.expectedCloseTagName =
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<test a=(123 + 456) b=789>
</test>
text:"\n"
<test a=123 b=(456 + 789)>
</test>

This file was deleted.

0 comments on commit fd04465

Please sign in to comment.