mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-12-04 02:07:59 +01:00
14de71898e
Keep around the start attributes on the lookahead token around in a separate parser property.
19 lines
265 B
Plaintext
19 lines
265 B
Plaintext
Error positions
|
|
-----
|
|
<?php foo
|
|
-----
|
|
Syntax error, unexpected EOF from 1:10 to 1:10
|
|
array(
|
|
)
|
|
-----
|
|
<?php foo /* bar */
|
|
-----
|
|
Syntax error, unexpected EOF from 1:20 to 1:20
|
|
array(
|
|
0: Stmt_Nop(
|
|
comments: array(
|
|
0: /* bar */
|
|
)
|
|
)
|
|
)
|