brittany/source/library/Language/Haskell/Brittany
Lennart Spitzner 34c8fd93d7 Respect inline configs that happen to appear deep in AST
comments between top-level decls should be considered
for inline-config. But despite being placed between
top-level decls, occasionally they get connected
somewhere nested inside the AST of the first decl.
We fix this by extracting such comments in a
pre-processing step. The control flow was significantly
altered to allow for this;
before:
  parsing -> extract inline configs
          -> compute final config(s)
          -> split module into head/decls/comments/whitespace
          -> ... bridoc -> transformations -> printing
after:
  parsing -> split module into head/decl/comments/whitespace
          -> extract inline configs respecting comments that
             got extracted from decls in the previous step
          -> compute final config(s)
          -> ... bridoc -> transformations -> printing
2023-05-18 15:42:48 +00:00
..
Internal Respect inline configs that happen to appear deep in AST 2023-05-18 15:42:48 +00:00
Internal.hs Respect inline configs that happen to appear deep in AST 2023-05-18 15:42:48 +00:00
Main.hs Respect inline configs that happen to appear deep in AST 2023-05-18 15:42:48 +00:00