-
-
Notifications
You must be signed in to change notification settings - Fork 367
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Doctest comment parsing using module annotations in Eval Plugin (#1232)
* WIP: Comment parsing using module annotations * Line Comment parsers (wip) * Line comment implemented (block comment not implemented) * Completely switches to Megaparsec * T27 must be fixed * We can always assume that comment starts with "--" with no space prepended * must be horizontal space, not ANY whitespace * Block parser (WIP) * We don't need whole range; position suffices * Brutal parsing for block haddock comments * Brutal line parsing * unset Opt_Haddock * Wrong debug messages * Redundant debug output * Hacks for indentation levels and LHS * Updates block comment logic in Literate Haskell * Updates doctests * Allows doctest without newline at the end * Precise handling of line ending * Corrects last-line block eval handling * Makes normal line parsing LHS sensitive * Removes outdated note on block comments in a single line * Wait a moment before executing each code lenses * Sorting tests in order * Sorts lenses in order * Reverted to use executCmd * Changes sorting logic * Fixes test case: trailing space * Dummy commit to re-invoke CI * expect fail CPP Eval on Windows * Corrects typo * Test for #1258 * Corrects test header * Ad-hoc treatment for ending brace in nested comment block * `goldenTest` function from Eval plugin doesn't support multiple tests in the same block but in separate group * Dummy commit to rerun CI * Stop using CPP and use `knownBrokenForGhcVersions` and `knownBrokenOnWindows` * Nested `expectedFailure` didn't work as expected * Abolishes `Parser` type synonym * Removes unneccesary comment evals * Skip failed curentRange resolution Co-authored-by: Junyoung/Clare Jang <[email protected]>
- Loading branch information
Showing
32 changed files
with
1,082 additions
and
862 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.