diff options
author | Tom Smeding <tom@tomsmeding.com> | 2025-01-21 23:35:16 +0100 |
---|---|---|
committer | Tom Smeding <tom@tomsmeding.com> | 2025-01-21 23:35:16 +0100 |
commit | 728c7f577228c1b1dab91c81f91cdfb9f59ec5bd (patch) | |
tree | 65070b52d4e3858d78b5ec343ea2f71af354f47b /src | |
parent | 26895448c293abf51aa96c1f2bec1b6a241f730b (diff) |
Fix typo in parser
Diffstat (limited to 'src')
-rw-r--r-- | src/HSVIS/Parser.hs | 4 |
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 |