Atdtool: make syntax highlighting more robust.