1
1
mirror of https://github.com/google/ormolu.git synced 2024-10-26 08:31:36 +03:00
ormolu/data
Mark Karpov dde7560291 Allow disabling of Ormolu with special comments
Ormolu can be turned on and off via the special comments:

{- ORMOLU_DISABLE -}

and

{- ORMOLU_ENABLE -}

This allows us to disable formatting selectively for code between these
markers or disable it for the entire file. To achieve the latter, just put
{- ORMOLU_DISABLE -} at the very top. Note that the source code should still
be parseable even without the “excluded” part. Because of that the magic
comments cannot be placed arbitrary, but should rather enclose independent
top-level definitions.
2020-04-21 12:44:39 +02:00
..
examples Allow disabling of Ormolu with special comments 2020-04-21 12:44:39 +02:00