[GHC] #10277: ApiAnnotations : lexer discards comment close in nested comment

GHC ghc-devs at haskell.org
Thu Apr 9 08:45:17 UTC 2015


#10277: ApiAnnotations : lexer discards comment close in nested comment
-------------------------------------+-------------------------------------
              Reporter:  alanz       |             Owner:  alanz
                  Type:  bug         |            Status:  new
              Priority:  normal      |         Milestone:  7.10.2
             Component:  Compiler    |           Version:  7.10.1
  (Parser)                           |  Operating System:  Unknown/Multiple
              Keywords:              |   Type of failure:  None/Unknown
  ApiAnnotations                     |        Blocked By:
          Architecture:              |   Related Tickets:
  Unknown/Multiple                   |
             Test Case:              |
              Blocking:              |
Differential Revisions:              |
-------------------------------------+-------------------------------------
 When parsing a nested comment, such as

 {{{#!hs
 {-
   {-  nested comment  -}
   {-# nested pragma  #-}
 -}
 }}}

 The lexer returns the comment annotation as

 {{{#!hs
 {-
   {-  nested comment
   {-# nested pragma  #
 -}
 }}}

 Restore the missing comment end markers in the annotation.

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/10277>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list