def _update_loc(self, c):
if newline_chars.match(c):<EOL><INDENT>self._col.append(<NUM_LIT:0>)<EOL>self._line.append(self._line[-<NUM_LIT:1>] + <NUM_LIT:1>)<EOL><DEDENT>else:<EOL><INDENT>self._col.append(self._col[-<NUM_LIT:1>] + <NUM_LIT:1>)<EOL>self._line.append(self._line[-<NUM_LIT:1>])<EOL><DEDENT>
Update the internal line and column buffers after a new character
        is added.

        The column number is set to 0, so the first character on the next line
        is column number 1.