aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTom Smeding <tom@tomsmeding.com>2025-01-21 23:35:16 +0100
committerTom Smeding <tom@tomsmeding.com>2025-01-21 23:35:16 +0100
commit728c7f577228c1b1dab91c81f91cdfb9f59ec5bd (patch)
tree65070b52d4e3858d78b5ec343ea2f71af354f47b /src
parent26895448c293abf51aa96c1f2bec1b6a241f730b (diff)
Fix typo in parser
Diffstat (limited to 'src')
-rw-r--r--src/HSVIS/Parser.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/HSVIS/Parser.hs b/src/HSVIS/Parser.hs
index 2110ca1..58f8907 100644
--- a/src/HSVIS/Parser.hs
+++ b/src/HSVIS/Parser.hs
@@ -801,14 +801,14 @@ pAlphaName0 bpos cs wrongcase = do
| isLower (head s) -> case wrongcase of
WCBacktrack -> faempty
WCAssume -> noFail $ do
- raiseAt startPos Error "Unexpected uppercase word at this position, assuming typo"
+ raiseAt startPos Error "Unexpected lowercase word at this position, assuming typo"
return (toUpper (head s) : tail s, id)
| otherwise -> return (s, id)
Lowercase
| isUpper (head s) -> case wrongcase of
WCBacktrack -> faempty
WCAssume -> noFail $ do
- raiseAt startPos Error "Unexpected lowercase word at this position, assuming typo"
+ raiseAt startPos Error "Unexpected uppercase word at this position, assuming typo"
return (toLower (head s) : tail s, id)
| otherwise -> return (s, id)
Don'tCare