lean4-htt/tests/lean/242.lean
David Thrane Christiansen 8e1ddbc5aa
fix: validate atoms modulo leading and trailing whitespace (#6012)
This PR improves the validation of new syntactic tokens. Previously, the
validation code had inconsistencies: some atoms would be accepted only
if they had a leading space as a pretty printer hint. Additionally,
atoms with internal whitespace are no longer allowed.

Closes #6011
2024-11-14 10:40:17 +00:00

8 lines
158 B
Text

syntax "0" : term
syntax "'a'" : term
syntax "`a" : term
syntax "\"a" : term
syntax " 0" : term
syntax " 'a'" : term
syntax " `a" : term
syntax " \"a" : term