Lexer: turn some fatal errors into non-fatal ones
authorAlec Theriault <alec.theriault@gmail.com>
Tue, 26 Feb 2019 00:39:27 +0000 (16:39 -0800)
committerMarge Bot <ben+marge-bot@smart-cactus.org>
Fri, 1 Mar 2019 21:32:09 +0000 (16:32 -0500)
commitf37efb11b957a21f3048f7005a234f96350ff938
tree806f2937aa38e50ec4e9f3ba1949a15a35b7ca21
parentc26d299dc422f43b8c37da4b26da2067eedcbae8
Lexer: turn some fatal errors into non-fatal ones

The following previously fatal lexer errors are now non-fatal:

  * errors about enabling `LambdaCase`
  * errors about enabling `NumericUnderscores`
  * errors about having valid characters in primitive strings

See #16270
compiler/parser/Lexer.x
testsuite/tests/parser/should_fail/ParserNoLambdaCase.stderr
testsuite/tests/parser/should_fail/T16270.hs
testsuite/tests/parser/should_fail/T16270.stderr