allow whitespace after "#" and "?"
cosmetic
fix regression in recognizing attribute token
special handling of "."