Skip to content

Commit

Permalink
fixup! [#6] Add a switch for allowing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
nalkuatov committed Jun 13, 2022
1 parent 476894a commit 262a1c4
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/Text/Interpolation/Nyan/Core.hs
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ module Text.Interpolation.Nyan.Core
, recommendedDefaultSwitchesOptions
-- ** Field accessors for default switches options
, defSpacesTrimming
, defCommenting
, defIndentationStripping
, defLeadingNewlineStripping
, defTrailingSpacesStripping
Expand Down
5 changes: 5 additions & 0 deletions core/src/Text/Interpolation/Nyan/Core/Internal/Parser.hs
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,11 @@ switchesHelpMessage sopts =
, ("S", "disable spaces trimming", Just False)
]

, helpOnOptions (defCommenting sopts)
[ ("c", "enable commenting", Just True)
, ("C", "disable commenting", Just False)
]

, helpOnOptions (defIndentationStripping sopts)
[ ("d", "enable indentation stripping", Just True)
, ("D", "disable indentation stripping", Just False)
Expand Down

0 comments on commit 262a1c4

Please sign in to comment.