Allow unbraced kerns, such as \kern1em.

This is actually the *only* syntax TeX allows; braced kern units
are invalid.
This commit is contained in:
Eddie Kohler
2016-12-08 14:47:20 -05:00
parent 7433638fda
commit 530ec97e74
3 changed files with 73 additions and 3 deletions

View File

@@ -220,7 +220,7 @@ describe("Parser.expect calls:", function() {
});
it("complains about missing { for size", function() {
expect("\\rule{1em}[2em]").toFailWithParseError(
"Expected '{', got '[' at position 11: \\rule{1em}[̲2em]");
"Invalid size: '[' at position 11: \\rule{1em}[̲2em]");
});
// Can't test for the [ of an optional group since it's optional
it("complains about missing } for color", function() {