[FEATURE] Add consumeWhitespaceWithComments and redirect consumeWhitespace (backported)#670
Conversation
…space (MyIntervals#670) Having comsumeWhitespace also consume comments and returning them was unexpected. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
a07190b to
b92f7c3
Compare
…space (MyIntervals#670) Having comsumeWhitespace also consume comments and returning them was unexpected. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
b92f7c3 to
79b271f
Compare
…space (MyIntervals#670) Having comsumeWhitespace also consume comments and returning them was unexpected. Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
Signed-off-by: Daniel Ziegenberg <daniel@ziegenberg.at>
79b271f to
d53d9ba
Compare
oliverklee
left a comment
There was a problem hiding this comment.
Thanks! Could you also add a test for the new method? (Copying and modifying the test for the other method should be fine.)
|
|
Sorry, clicked the wrong buttons... |
|
This should go into |
|
And (as far as I see) as this isn't necessary for the bugfix (please correct me if I'm wrong) and does not provide any user-/developer facing new feature, I'd prefer this to go into |
|
If there becomes a need somewhere to consume whitespace but not comments, a method can be implemented, but I'm not currently aware of any need. |
Having
consumeWhitespacealso consumes comments, and returning them was unexpected. This also "deprecates" the consumeWhitespace method and announces a breaking change for 9.0.0.