Changeset View
Changeset View
Standalone View
Standalone View
support/xhpast/scanner.l
| Show All 32 Lines | |||||
| %option reentrant | %option reentrant | ||||
| /* PHP allows IF or if */ | /* PHP allows IF or if */ | ||||
| %option case-insensitive | %option case-insensitive | ||||
| %option noyywrap nodefault | %option noyywrap nodefault | ||||
| %option stack | %option stack | ||||
| %option bison-bridge | %option bison-bridge | ||||
| %option 8bit | %option 8bit | ||||
| /* I think an interactive scanner is required because of the bison state | |||||
| * pushing we do. I'm putting an explicit interactive declaration here in case | |||||
| * someone tries adding -CF or whatever to the make flags. */ | |||||
| %option interactive | |||||
| /* The different lexing states. Note that the transitions are done either | /* The different lexing states. Note that the transitions are done either | ||||
| * in the lex actions, or in a generic manner in yy_token(). */ | * in the lex actions, or in a generic manner in yy_token(). */ | ||||
| %s PHP | %s PHP | ||||
| %s PHP_COMMENT | %s PHP_COMMENT | ||||
| %s PHP_EOL_COMMENT | %s PHP_EOL_COMMENT | ||||
| %s PHP_DOC_COMMENT | %s PHP_DOC_COMMENT | ||||
| %s PHP_HEREDOC_START | %s PHP_HEREDOC_START | ||||
| %s PHP_HEREDOC_NSTART | %s PHP_HEREDOC_NSTART | ||||
| ▲ Show 20 Lines • Show All 473 Lines • Show Last 20 Lines | |||||