[commit: ghc] ghc-7.10: parser: Allow Lm (MODIFIER LETTER) category in identifiers (358e0a8)

git at git.haskell.org git at git.haskell.org
Wed Jul 15 08:09:20 UTC 2015


Repository : ssh://git@git.haskell.org/ghc

On branch  : ghc-7.10
Link       : http://ghc.haskell.org/trac/ghc/changeset/358e0a8d4cb49baa29cf6b001eaa9d4ac428bb2d/ghc

>---------------------------------------------------------------

commit 358e0a8d4cb49baa29cf6b001eaa9d4ac428bb2d
Author: Thomas Miedema <thomasmiedema at gmail.com>
Date:   Fri Jul 3 22:37:18 2015 +0200

    parser: Allow Lm (MODIFIER LETTER) category in identifiers
    
    Easy fix in the parser to stop regressions, due to Unicode 7.0 changing
    the classification of some prior code points.
    
    Signed-off-by: Austin Seipp <austin at well-typed.com>
    
    Test Plan: `tests/parser/should_compile/T10196.hs`
    
    Reviewers: hvr, austin, bgamari
    
    Reviewed By: austin, bgamari
    
    Subscribers: thomie, bgamari
    
    Differential Revision: https://phabricator.haskell.org/D969
    
    GHC Trac Issues: #10196


>---------------------------------------------------------------

358e0a8d4cb49baa29cf6b001eaa9d4ac428bb2d
 compiler/basicTypes/Lexeme.hs                         | 11 ++++++++++-
 compiler/parser/Lexer.x                               |  8 ++++++--
 compiler/utils/Util.hs                                | 14 ++++++++++++++
 testsuite/tests/parser/should_compile/T10196.hs       | 13 +++++++++++++
 testsuite/tests/parser/should_compile/all.T           |  1 +
 testsuite/tests/parser/should_fail/T10196Fail1.hs     |  4 ++++
 testsuite/tests/parser/should_fail/T10196Fail1.stderr |  2 ++
 testsuite/tests/parser/should_fail/T10196Fail2.hs     |  4 ++++
 testsuite/tests/parser/should_fail/T10196Fail2.stderr |  2 ++
 testsuite/tests/parser/should_fail/T10196Fail3.hs     |  6 ++++++
 testsuite/tests/parser/should_fail/T10196Fail3.stderr |  2 ++
 testsuite/tests/parser/should_fail/all.T              |  3 +++
 12 files changed, 67 insertions(+), 3 deletions(-)

Diff suppressed because of size. To see it, use:

    git diff-tree --root --patch-with-stat --no-color --find-copies-harder --ignore-space-at-eol --cc 358e0a8d4cb49baa29cf6b001eaa9d4ac428bb2d


More information about the ghc-commits mailing list