public void consumeRemainingCharactersOnLine() {
        char ch = peek();
        while (ch != EOF && ch != '\n' && ch != '\r') {
            skip();
            ch = peek();
        }
    }
Skips over the remaining characters on a line but does not consume
the newline character (\n or \r\n).

<p>This method will also terminate when the end of the expression
is encountered.

<p>This method is useful, for example, for skipping the text of a
commented out line in an expression. If the contents of the skipped
line are required, then store the current position before invoking
this method using {@link #position()}, then call this method, then get
the contents of the skipped characters using {@link #sliceFrom(int)}.
smithy-utils/src/main/java/software/amazon/smithy/utils/SimpleParser.java