Fix trac #2687
authorIan Lynagh <igloo@earth.li>
Wed, 15 Oct 2008 16:34:12 +0000 (16:34 +0000)
committerIan Lynagh <igloo@earth.li>
Wed, 15 Oct 2008 16:34:12 +0000 (16:34 +0000)
OtherPunctuation, ConnectorPunctuation and DashPunctuation are now
treated as symbols, rather than merely graphic characters.

compiler/parser/Lexer.x

index 19927d1..c813e36 100644 (file)
@@ -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