public void skip() {
        if (eof()) {
            return;
        }

        switch (input.charAt(position)) {
            case '\r':
                if (peek(1) == '\n') {
                    position++;
                }
                line++;
                column = 1;
                break;
            case '\n':
                line++;
                column = 1;
                break;
            default:
                column++;
        }

        position++;
    }
Skips a single character while tracking lines and columns.
smithy-utils/src/main/java/software/amazon/smithy/utils/SimpleParser.java