353: def munge_token(token, value)
354: @line += 1 if token.incr_line
355:
356: skip() if token.skip_text
357:
358: return if token.skip and not token.accumulate?
359:
360: token, value = token.convert(self, value) if token.respond_to?(:convert)
361:
362: return unless token
363:
364: if token.accumulate?
365: comment = @commentstack.pop
366: comment[0] << value + "\n"
367: @commentstack.push(comment)
368: end
369:
370: return if token.skip
371:
372: return token, { :value => value, :line => @line }
373: end