Skip to content
  • Alan Zimmerman's avatar
    ApiAnnotations : ITopenExpQuote needs SourceText · ee914828
    Alan Zimmerman authored
    Summary:
    In the lexer, ITopenExpQuote can be recognised for '[e|' or '[|'.
    
    The token definition needs to capture the original SourceText, and pass
    it through to ExpBr, which also needs a SrcText field.
    
    It is easier to simply add a flag  to the token identifying the variant
    and to generate a different AnnKeywordId based on this.
    
    Test Plan: ./validate
    
    Reviewers: mpickering, bgamari, austin
    
    Reviewed By: bgamari
    
    Subscribers: thomie
    
    Differential Revision: https://phabricator.haskell.org/D1479
    
    GHC Trac Issues: #10276
    ee914828