aboutsummaryrefslogtreecommitdiff
path: root/hypsrc-test/ref/src
Commit message (Collapse)AuthorAgeFilesLines
* Improve hyperlinker's 'spanToNewline' (#846)Alec Theriault2018-06-131-0/+216
| | | | | | | | | | | | | | | | 'spanToNewline' is used to help break apart the source into lines which can then be partioned into CPP and non-CPP chunks. It is important that 'spanToNewline' not break apart tokens, so it needs to properly handle things like * block comments, possibly nested * string literals, possibly multi-line * CPP macros, possibly multi-line String literals in particular were not being properly handled. The fix is to to fall back in 'Text.Read.lex' to help lex things that are not comments. Fixes #837.
* Hyperlinker: Links for TyOps, class methods and associated typesalexbiehl2018-03-051-10/+30
|
* Use the GHC lexer for the Hyperlinker backend (#714)Alec Theriault2018-02-011-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Start changing to use GHC lexer * better cpp * Change SrcSpan to RealSrcSpan * Remove error * Try to stop too many open files * wip * wip * Revert "wip" This reverts commit b605510a195f26315e3d8ca90e6d95a6737553e1. Conflicts: haddock-api/haddock-api.cabal haddock-api/src/Haddock/Interface.hs * Remove pointless 'caching' * Use dlist rather than lists when finding vars * Use a map rather than list * Delete bogus comment * Rebase followup Things now run using the GHC lexer. There are still - stray debug statements - unnecessary changes w.r.t. master * Cleaned up differences w.r.t. current Haddock HEAD Things are looking good. quasiquotes in particular look beautiful: the TH ones (with Haskell source inside) colour/link their contents too! Haven't yet begun to check for possible performance problems. * Support CPP and top-level pragmas The support for these is hackier - but no more hacky than the existing support. * Tests pass, CPP is better recognized The tests were in some cases altered: I consider the new output to be more correct than the old one.... * Fix shrinking of source without tabs in test * Replace 'Position'/'Span' with GHC counterparts Replaces 'Position' -> 'GHC.RealSrcLoc' and 'Span' -> 'GHC.RealSrcSpan'. * Nits * Forgot entry in .cabal * Update changelog
* hypsrc-test: Accept test outputBen Gamari2016-02-088-377/+2370
| | | | And fix impredicative Polymorphism testcase.
* Re-accept test cases after adding line anchors for each of them.Łukasz Hanuszczak2015-08-027-1011/+1673
|
* Delete trailing whitespaceMateusz Kowalczyk2015-07-071-1/+1
|
* Create hyperlinker test case for type classes.Łukasz Hanuszczak2015-07-021-0/+931
|
* Fix broken tests for parsing and hyperlinking hash operators.Łukasz Hanuszczak2015-07-021-0/+122
|
* Add hyperlinker test case for checking type and type family declarations.Łukasz Hanuszczak2015-07-021-0/+937
|
* Add qualified name test for identifiers hyperlinking test case.Łukasz Hanuszczak2015-07-011-0/+45
|
* Add record wildcards test for records hyperlinking test case.Łukasz Hanuszczak2015-07-011-0/+241
|
* Create test case for hyperlinking @-patterns.Łukasz Hanuszczak2015-07-011-0/+298
|
* Re-accept hyperlinker test cases with local references stripped out.Łukasz Hanuszczak2015-07-015-160/+160
|
* Add reference files for hyperlinker test cases.Łukasz Hanuszczak2015-06-305-0/+3019