mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-11-12 01:08:55 +00:00
Fixing Parser for All Wiki and Chem Tests
This is required to run these tests. Change-Id: I9e12b2f4cf6dc7d96cd51f408d8aa8d71b224ab3
This commit is contained in:
parent
551bc174c9
commit
2d56f19e3c
|
@ -422,7 +422,7 @@ class Parser {
|
|||
private function peg_f4($h, $t) { return new TexArray($h, $t); }
|
||||
private function peg_f5($d, $e) { return new TexArray(new Declh($d->getFname(), ParserUtil::lst2arr($e))); }
|
||||
private function peg_f6($l1, $l2) {
|
||||
return new FQ($l1->getBase(), $l1->getDown(), $l2); }
|
||||
return new FQ($l1->getBase(), $l1->getUp(), $l2); }
|
||||
private function peg_f7($l1, $l2) {
|
||||
return new FQ($l1->getBase(), $l2, $l1->getUp()); }
|
||||
private function peg_f8($base, $upi) { return new UQ($base, $upi); }
|
||||
|
|
|
@ -55,7 +55,7 @@ litsq_aq
|
|||
litsq_fq
|
||||
= l1:litsq_dq SUP l2:lit
|
||||
{
|
||||
return new FQ($l1->getBase(), $l1->getDown(), $l2); }
|
||||
return new FQ($l1->getBase(), $l1->getUp(), $l2); }
|
||||
/ l1:litsq_uq SUB l2:lit
|
||||
{
|
||||
return new FQ($l1->getBase(), $l2, $l1->getUp()); }
|
||||
|
|
Loading…
Reference in a new issue