EPA: When splitting out header comments, keep ones for first decl
Any comments immediately preceding the first declaration are no longer kept as header comments, but attach to the first declaration instead.
Showing
- compiler/GHC/Parser/Lexer.x 23 additions, 3 deletionscompiler/GHC/Parser/Lexer.x
- testsuite/tests/ghc-api/exactprint/Test20239.stderr 9 additions, 8 deletionstestsuite/tests/ghc-api/exactprint/Test20239.stderr
- testsuite/tests/parser/should_compile/DumpParsedAstComments.hs 4 additions, 0 deletions...uite/tests/parser/should_compile/DumpParsedAstComments.hs
- testsuite/tests/parser/should_compile/DumpParsedAstComments.stderr 68 additions, 44 deletions.../tests/parser/should_compile/DumpParsedAstComments.stderr
- testsuite/tests/printer/Ppr031.hs 1 addition, 0 deletionstestsuite/tests/printer/Ppr031.hs
Please register or sign in to comment