lex.py: support special tags !!! and doctype
lex.py: Support tag concluders '.' and '=' besides ':'.

'.' is currently broken due to class qualifier accepting empty class.