Add ~ space support and complex formula tests

Agent-Logs-Url: https://github.com/wesleyel/swiftui-math/sessions/6740d67f-473b-43b8-87ba-25d9469f5757

Co-authored-by: wesleyel <48174882+wesleyel@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2026-04-06 14:18:08 +00:00
committed by GitHub
parent 569db11ed5
commit 348f75ccea
3 changed files with 67 additions and 1 deletions

View File

@@ -537,8 +537,10 @@ extension Math {
return atom(fromAccentedCharacter: ch)
case _ where ch.utf32 < 0x0021 || ch.utf32 > 0x007E:
return nil
case "$", "%", "#", "&", "~", "\'", "^", "_", "{", "}", "\\":
case "$", "%", "#", "&", "\'", "^", "_", "{", "}", "\\":
return nil
case "~":
return Space(amount: 3)
case "(", "[":
return Atom(type: .open, nucleus: stringValue)
case ")", "]", "!", "?":