Add tie symbol (~)

Summary:
Add real support for the tie symbol. Also, get rid of any of the
leftover bad support

Test Plan:
 - See the new normal tests succeed
 - See huxley tests didn't change except the new ones, which looks good

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D7772
This commit is contained in:
Emily Eisenberg
2014-03-27 19:23:15 -04:00
parent d729ba5281
commit 4154c370ec
7 changed files with 54 additions and 7 deletions

View File

@@ -25,13 +25,15 @@ var mathNormals = [
[/^{/, "{"],
[/^}/, "}"],
[/^[(\[]/, "open"],
[/^[)\]?!]/, "close"]
[/^[)\]?!]/, "close"],
[/^~/, "spacing"]
];
var textNormals = [
[/^[a-zA-Z0-9`!@*()-=+\[\]'";:?\/.,]/, "textord"],
[/^{/, "{"],
[/^}/, "}"]
[/^}/, "}"],
[/^~/, "spacing"]
];
// Build a regex to easily parse the functions