Add spacing functions

Summary: Add \qquad, \quad, \;, etc. Fixes T7

Test Plan:
Add some spacings. Make sure that they look reasonable widths.
Especially, if you add a space (`\space`), make sure that it doesn't disappear
because the spacing disappears.

Reviewers: spicyj

Reviewed By: spicyj

Maniphest Tasks: T7

Differential Revision: http://phabricator.benalpert.com/D46
This commit is contained in:
Emily Eisenberg
2013-07-09 15:32:54 -07:00
parent a30a39247f
commit 2478a385ae
4 changed files with 60 additions and 1 deletions

View File

@@ -62,6 +62,18 @@ func
{$$ = [{type: 'rel', value: yytext}];}
| 'ngeq'
{$$ = [{type: 'rel', value: yytext}];}
| 'qquad'
{$$ = [{type: 'spacing', value: yytext}];}
| 'quad'
{$$ = [{type: 'spacing', value: yytext}];}
| 'space'
{$$ = [{type: 'spacing', value: yytext}];}
| ','
{$$ = [{type: 'spacing', value: yytext}];}
| ':'
{$$ = [{type: 'spacing', value: yytext}];}
| ';'
{$$ = [{type: 'spacing', value: yytext}];}
| 'blue' group
{$$ = [{type: 'color', value: {color: 'blue', value: $2}}];}
| 'orange' group