code: def tokenize_line_comment(text):
      r
      result = TokenWithPosition('', text.position)
      if text.peek() == '%' and text.peek(-1) != '\\':
          result += text.forward(1)
          while text.peek() != '\n' and text.hasNext():
              result += text.forward(1)
          return result
docs: r"""Process a line comment
  
      :param Buffer text: iterator over line, with current position
  
      >>> tokenize_line_comment(Buffer('hello %world'))
      >>> tokenize_line_comment(Buffer('%hello world'))
      '%hello world'
      >>> tokenize_line_comment(Buffer('%hello\n world'))
      '%hello'