From: Ian Lynagh Date: Wed, 15 Oct 2008 16:34:12 +0000 (+0000) Subject: Fix trac #2687 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=230db59e57cb21a80f727b139bd619ef26eb020b Fix trac #2687 OtherPunctuation, ConnectorPunctuation and DashPunctuation are now treated as symbols, rather than merely graphic characters. --- diff --git a/compiler/parser/Lexer.x b/compiler/parser/Lexer.x index 19927d1..c813e36 100644 --- a/compiler/parser/Lexer.x +++ b/compiler/parser/Lexer.x @@ -1556,13 +1556,13 @@ alexGetChar (AI loc ofs s) DecimalNumber -> digit LetterNumber -> other_graphic OtherNumber -> other_graphic - ConnectorPunctuation -> other_graphic - DashPunctuation -> other_graphic + ConnectorPunctuation -> symbol + DashPunctuation -> symbol OpenPunctuation -> other_graphic ClosePunctuation -> other_graphic InitialQuote -> other_graphic FinalQuote -> other_graphic - OtherPunctuation -> other_graphic + OtherPunctuation -> symbol MathSymbol -> symbol CurrencySymbol -> symbol ModifierSymbol -> symbol