Property definitions

nitc $ AnsiHighlightVisitor :: defaultinit
# Text-based highlighter that use ANSI escape sequence for colors
class AnsiHighlightVisitor
	super AbstractHighlightVisitor

	# The produced highlighting
	var result = new Template

	redef fun do_highlight(f, l)
	do
		var c
		c = f
		while c != null do
			if c != f then result.add(c.blank_before)
			result.add c.ansi_colored

			if c == l then
				c = null
			else
				c = c.next_token
			end
		end
	end
end
src/highlight.nit:114,1--136,3