extract basic highlighting rules into #lex