def __parse_comment(self):
        """Scan through a // or /* comment."""
        comment_start_pos = self.__scanner.position

        # Consume the /
        self.__scanner.read_ubyte()

        if self.__scanner.at_end:
            self.__error("Unexpected character '/'")
    
        c = self.__scanner.read_ubyte()
        if c == '/':
            # This is a "//" comment. Scan through EOL.
            while not self.__scanner.at_end:
                c = self.__scanner.read_ubyte()
                if c == '\n' or c == '\r':
                    break
      
            # If this is a CRLF, scan through the LF.
            if c == '\r' and self.__scanner.peek_next_ubyte(none_if_bad_index=True) == '\n':
                self.__scanner.read_ubyte()
        elif c == '*':
            # This is a "/*" comment. Scan through "*/".
            while not self.__scanner.at_end:
                c = self.__scanner.read_ubyte()
                if (c == '*' and 
                    self.__scanner.peek_next_ubyte(
                        none_if_bad_index=True) == '/'):
                    self.__scanner.read_ubyte()
                    return
            self.__error("Unterminated comment", comment_start_pos)
        else:
            self.__error(c % "Unexpected character '/%s'")
dataset/ETHPy150Open scalyr/scalyr-agent-2/scalyr_agent/json_lib/parser.py/JsonParser.__parse_comment/swapped operands of `%`