diff options
author | Georg Brandl <georg@python.org> | 2014-10-08 00:12:29 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-10-08 00:12:29 +0200 |
commit | 1fd65ff28bc90c6ea89a4f4e6397818ab1a99b4c (patch) | |
tree | 428190f76c144f08d6b8f7e058ad10667905e03e /tests/examplefiles/example.hs | |
parent | 91a1dc56d38e918f69bf690675583f60a0b6425d (diff) | |
download | pygments-1fd65ff28bc90c6ea89a4f4e6397818ab1a99b4c.tar.gz |
Closes #1015: fix lexing of Haskell char literals.
In the case of TH quoting, 'f'7 means char literal and then numeric 7, not quoted f'7, see
http://www.haskell.org/ghc/docs/7.6.2/html/users_guide/template-haskell.html
Diffstat (limited to 'tests/examplefiles/example.hs')
-rw-r--r-- | tests/examplefiles/example.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/examplefiles/example.hs b/tests/examplefiles/example.hs index 9efd3364..f5e2b555 100644 --- a/tests/examplefiles/example.hs +++ b/tests/examplefiles/example.hs @@ -25,3 +25,7 @@ data ĈrazyThings = House | Peár deriving (Show, Eq) + +-- some char literals: + +charl = ['"', 'a', '\ESC', '\'', ' '] |