gracelang / minigrace

Self-hosting compiler for the Grace programming language
39 stars 22 forks source link

non-breaking space allowed in source files. #171

Closed apblack closed 8 years ago

apblack commented 8 years ago

non-breaking space (U+00A0) should be rejected by the lever. But it's allowed. and treated as an operator character, so ≠  is considered an operator! Very confusing.

apblack commented 8 years ago

Fixed in 7622da80e76. Non-breaking space is explicitly allowed as a space, but wasn't consistently resetting the lexer "mode" to whitespace.