making use of ast->parent for syntax highlighting