mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Math
synced 2024-09-23 10:21:31 +00:00
Remove unreachable grammar rules for 4 byte chars
When converting from JS to PHP the grammar rules for 4 byte UTF-8 chars were converted in a way that makes the code unreachable. * Remove the unreachable code for now code Bug: T319521 Change-Id: Icdb3c71bb738e8f55ce190daef0534794de35eec
This commit is contained in:
parent
4f82ce56de
commit
28df29d388
File diff suppressed because it is too large
Load diff
|
@ -309,8 +309,6 @@ literal_uf_op = [-+*=]
|
|||
delimiter_uf_op = [\/|]
|
||||
boxchars // match only valid UTF-16 sequences
|
||||
= [-0-9a-zA-Z+*,=():\/;?.!'` \[\]\[\u0080-\ud7ff\]\[\ue000-\uffff\]]
|
||||
/ l:[\ud800-\udbff] h:[\udc00-\udfff] { return $this->text(); }
|
||||
//aboxchars = [-0-9a-zA-Z+*,=():\/;?.!'` ]
|
||||
|
||||
BOX
|
||||
= b:generic_func &{ return $this->tu->box_functions($b); } _ "{" cs:boxchars+ "}" _
|
||||
|
|
Loading…
Reference in a new issue