Skip to content

Commit b4ba4eb

Browse files
committed
Use EIdentifier instead of ESymbol Alpha for \ell, etc.
Closes #256.
1 parent 2a992db commit b4ba4eb

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

src/Text/TeXMath/Readers/TeX.hs

+1
Original file line numberDiff line numberDiff line change
@@ -878,6 +878,7 @@ tSymbol sym =
878878
(\t -> EUnder False t acc) <$> texToken
879879
Just acc@(ESymbol TOver _) ->
880880
(\t -> EOver False t acc) <$> texToken
881+
Just (ESymbol Alpha t) -> return $ EIdentifier t -- see #256
881882
Just x -> return x
882883
Nothing
883884
| sym == "\\mod" -> do

test/regression/235.test

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
, EIdentifier "\953"
9090
, EIdentifier "\922"
9191
, EIdentifier "\954"
92-
, ESymbol Alpha "\120600"
92+
, EIdentifier "\120600"
9393
, EIdentifier "\923"
9494
, EIdentifier "\120556"
9595
, EIdentifier "\955"
@@ -105,7 +105,7 @@
105105
, EIdentifier "\928"
106106
, EIdentifier "\120561"
107107
, EIdentifier "\960"
108-
, ESymbol Alpha "\982"
108+
, EIdentifier "\982"
109109
, EIdentifier "\929"
110110
, EIdentifier "\961"
111111
, EIdentifier "\931"

0 commit comments

Comments
 (0)