The last of the syntax-coloring algorithm.