Skip to content

Commit 80775db

Browse files
authored
Merge pull request #25200 from anntzer/us
Don't handle unknown_symbols in `\operatorname`.
2 parents 545b581 + dcbe505 commit 80775db

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/matplotlib/_mathtext.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1881,8 +1881,7 @@ def csnames(group, names):
18811881

18821882
p.function <<= csnames("name", self._function_names)
18831883
p.operatorname <<= cmd(
1884-
r"\operatorname",
1885-
"{" + ZeroOrMore(p.simple | p.unknown_symbol)("name") + "}")
1884+
r"\operatorname", "{" + ZeroOrMore(p.simple)("name") + "}")
18861885

18871886
p.group <<= p.start_group + ZeroOrMore(p.token)("group") + p.end_group
18881887

0 commit comments

Comments
 (0)