@@ -15,7 +15,6 @@ import Text.Interpolation.Nyan.Core.Internal.Base
15
15
processIntString :: SwitchesOptions -> ParsedInterpolatedString -> InterpolatedString
16
16
processIntString sopts istr = istr
17
17
& V. fromList
18
- & do if commenting sopts then skipComments else id
19
18
& do if leadingNewlineStripping sopts then stripLeadingNewline else id
20
19
& do if trailingSpacesStripping sopts then stripTrailingLeadingWs else id
21
20
& do if indentationStripping sopts then stripCommonIndentation else id
@@ -31,8 +30,6 @@ processIntString sopts istr = istr
31
30
where
32
31
(&) = flip ($)
33
32
34
- skipComments = V. filter \ case PipComments {} -> False ; _ -> True
35
-
36
33
stripLeadingNewline ps = case V. uncons ps of
37
34
Just (PipNewline _, ps') -> ps'
38
35
_ -> ps
@@ -48,9 +45,6 @@ processIntString sopts istr = istr
48
45
PipString s ->
49
46
let s' = trimText s
50
47
in if T. null s' then Nothing else Just (PipString s')
51
- PipComments s ->
52
- let s' = trimText s
53
- in if T. null s' then Nothing else Just (PipString s')
54
48
p@ PipInt {} -> Just p
55
49
56
50
trimLeftSpaces ps = case V. uncons ps of
@@ -110,7 +104,6 @@ processIntString sopts istr = istr
110
104
-- invisible spaces to break the newlines sequence.
111
105
p@ PipLeadingWs {} : l -> p : skipNext l
112
106
p@ PipString {} : l -> p : reduceNext l
113
- p@ PipComments {} : l -> p : reduceNext l
114
107
p@ PipInt {} : l -> p : reduceNext l
115
108
[] -> []
116
109
@@ -120,7 +113,6 @@ processIntString sopts istr = istr
120
113
PipNewline nl -> IpString nl
121
114
PipLeadingWs n -> IpString . mconcat $ replicate (fromIntegral n) " "
122
115
PipEmptyLine -> IpString mempty
123
- PipComments s -> IpString s
124
116
PipInt i -> IpInt i
125
117
126
118
glueStrings :: InterpolatedString -> InterpolatedString
0 commit comments