Add unicode syntax for banana brackets
Summary: Add "⦇" and "⦈" as unicode alternatives for "(|" and "|)" respectively. This must be implemented differently than other unicode additions because ⦇" and "⦈" are interpretted as a $unigraphic rather than a $unisymbol. Test Plan: validate Reviewers: goldfire, bgamari, austin Reviewed By: bgamari, austin Subscribers: thomie, mpickering Differential Revision: https://phabricator.haskell.org/D2012 GHC Trac Issues: #10162
Showing
- compiler/parser/Lexer.x 17 additions, 4 deletionscompiler/parser/Lexer.x
- compiler/parser/Parser.y 2 additions, 2 deletionscompiler/parser/Parser.y
- docs/users_guide/glasgow_exts.rst 4 additions, 0 deletionsdocs/users_guide/glasgow_exts.rst
- testsuite/tests/arrows/should_compile/arrowform1.hs 13 additions, 13 deletionstestsuite/tests/arrows/should_compile/arrowform1.hs
- testsuite/tests/parser/unicode/all.T 2 additions, 0 deletionstestsuite/tests/parser/unicode/all.T
- testsuite/tests/parser/unicode/arrowsyntax.hs 34 additions, 0 deletionstestsuite/tests/parser/unicode/arrowsyntax.hs
Loading
Please register or sign in to comment