Once the lexical state has been set to LWORD, it will stay there until a NEWLINE or a SEMICOLON is found. Both of these cause the lexical state to become LKEYWORD again.
The individual words recognized can be any of the following, but in each case, the state stays LWORD:
Lexeme |
Regular Expression |
---|---|
GREATER | ">" |
LESS | "<" |
GREATERAMPERSAND | ">&" |
ONEGREATER | "1>" |
TWOGREATER | "2>" |
STRINGliteral | [']{charChar}*['] ["]{stringChar}*["] |
STRINGliteral | {WD}* that does not end in a backslash |
WIDECHARACTERconstant | [lL][']{charChar}+['] |
WIDESTRINGliteral | [lL]["]{stringChar}*["] |