aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Parser.hs
diff options
context:
space:
mode:
authorMarvin Borner2022-08-31 17:13:17 +0200
committerMarvin Borner2022-08-31 17:13:17 +0200
commit545ef6ade19f362ea1603bc17fd5a50794628d71 (patch)
tree76a6447481e1ed79d18514d23635d28b332f485e /src/Parser.hs
parentf52acf811f51657a16ca8514f01345187e722111 (diff)
Even more unicodes
Diffstat (limited to 'src/Parser.hs')
-rw-r--r--src/Parser.hs10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/Parser.hs b/src/Parser.hs
index 1952cde..af9aa70 100644
--- a/src/Parser.hs
+++ b/src/Parser.hs
@@ -27,9 +27,13 @@ emoticon = satisfy isEmoticon
where isEmoticon c = ('\128512' <= c && c <= '\128591')
mathematicalOperator :: Parser Char
-mathematicalOperator = satisfy isMathematicalUnicodeBlock
- <|> oneOf "¬₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾"
- where isMathematicalUnicodeBlock c = ('∀' <= c && c <= '⋿')
+mathematicalOperator =
+ satisfy isMathematicalUnicodeBlock
+ <|> satisfy isMiscMathematicalAUnicodeBlock
+ <|> oneOf "¬₀₁₂₃₄₅₆₇₈₉₊₋₌₍₎⁰¹²³⁴⁵⁶⁷⁸⁹⁺⁻⁼⁽⁾"
+ where
+ isMathematicalUnicodeBlock c = ('∀' <= c && c <= '⋿')
+ isMiscMathematicalAUnicodeBlock c = ('⟀' <= c && c <= '⟯')
mathematicalArrow :: Parser Char
mathematicalArrow = satisfy isMathematicalOperator