Make {} turn things into ords
Auditors: spicyj
This commit is contained in:
parent
29fde5d364
commit
a95b93789a
|
@ -88,6 +88,8 @@ var buildGroup = function(group, prev) {
|
|||
return makeSpan("rlap", inner);
|
||||
} else if (group.type === "punct") {
|
||||
return makeSpan("mpunct", textit(group.value));
|
||||
} else if (group.type === "ordgroup") {
|
||||
return makeSpan("mord", buildExpression(group.value));
|
||||
} else {
|
||||
console.log("Unknown type:", group.type);
|
||||
}
|
||||
|
|
|
@ -36,7 +36,7 @@ group
|
|||
: atom
|
||||
{$$ = $1;}
|
||||
| '{' ex '}'
|
||||
{$$ = $2;}
|
||||
{$$ = [{type: 'ordgroup', value: $2}];}
|
||||
| func
|
||||
{$$ = $1;}
|
||||
;
|
||||
|
|
Loading…
Reference in New Issue
Block a user