Allow some functions to have letters after them

Summary: Allow there to be letters immediately after \ , \;, \,, \:.

Test Plan: Run the tests

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D3031
This commit is contained in:
Emily Eisenberg
2013-07-13 00:05:41 -07:00
parent 5871d1756f
commit 38e2d600fd
2 changed files with 7 additions and 22 deletions

View File

@@ -319,6 +319,12 @@ describe("A function parser", function() {
parseTree("\\dfrac12");
}).not.toThrow();
});
it("should parse some functions with text right after it", function() {
expect(function() {
parseTree("\\;x");
}).not.toThrow();
});
});
describe("A dfrac parser", function() {