|
|
const | STATE_DATA = 0 |
|
const | STATE_BLOCK = 1 |
|
const | STATE_VAR = 2 |
|
const | STATE_STRING = 3 |
|
const | STATE_INTERPOLATION = 4 |
|
const | REGEX_NAME = '/[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*/A' |
|
const | REGEX_STRING = '/"([^#"\\\\]*(?:\\\\.[^#"\\\\]*)*)"|\'([^\'\\\\]*(?:\\\\.[^\'\\\\]*)*)\'/As' |
| const | REGEX_NUMBER |
|
const | REGEX_DQ_STRING_DELIM = '/"/A' |
|
const | REGEX_DQ_STRING_PART = '/[^#"\\\\]*(?:(?:\\\\.|#(?!\{))[^#"\\\\]*)*/As' |
|
const | REGEX_INLINE_COMMENT = '/#[^\n]*/A' |
|
const | PUNCTUATION = '()[]{}?:.,|' |
◆ REGEX_NUMBER
Valeur initiale : = '/(?(DEFINE)
(?<LNUM>[0-9]+(_[0-9]+)*) # Integers (with underscores) 123_456
(?<FRAC>\.(?&LNUM)) # Fractional part .456
(?<EXPONENT>[eE][+-]?(?&LNUM)) # Exponent part E+10
(?<DNUM>(?&LNUM)(?:(?&FRAC))?) # Decimal number 123_456.456
)(?:(?&DNUM)(?:(?&EXPONENT))?) # 123_456.456E+10
/Ax'
La documentation de cette classe a été générée à partir du fichier suivant :
- vendor/twig/twig/src/Lexer.php