lex.py: Support implicit <div>
lex.py: Add docstrings for various states
lex.py: Let `line` state skip leading whitespaces, moved below maybe_colon