Attempt to merge ords together

Summary:
Try not to waste spans by putting a bunch of numbers or letters
together into the same ord box. I don't think that this breaks any of the
current stuff.

Test Plan:
Write lots of expressions that have ords in them. Make sure that all
the reasonable ords are grouped together, and that the formatting still works.

Reviewers: spicyj

Reviewed By: spicyj

Differential Revision: http://phabricator.benalpert.com/D52
This commit is contained in:
Emily Eisenberg
2013-07-09 22:31:19 -07:00
parent 42cc8b1a12
commit 90dfae6924
3 changed files with 10 additions and 11 deletions

View File

@@ -143,8 +143,10 @@ func
;
atom
: 'ORD'
{$$ = [{type: 'ord', value: yytext}];}
: 'TEXTORD'
{$$ = [{type: 'textord', value: yytext}];}
| 'MATHORD'
{$$ = [{type: 'mathord', value: yytext}];}
| 'BIN'
{$$ = [{type: 'bin', value: yytext}];}
| 'REL'