php-src/ext/tokenizer
Thomas Punt 4887357269 Implement flexible heredoc/nowdoc syntax
RFC: https://wiki.php.net/rfc/flexible_heredoc_nowdoc_syntaxes

* The ending label no longer has to be followed by a semicolon or
  newline. Any non-label character is fine.
* The ending label may be indented. The indentation will be stripped
  from all lines in the heredoc/nowdoc string.

Lexing of heredoc strings performs a scan-ahead to determine the
indentation of the ending label, so that the correct amount of
indentation can be removed when calculting the semantic values for
use by the parser. This makes the implementation quite a bit more
complicated than we would like :/
2018-04-13 21:35:37 +02:00
..
tests Implement flexible heredoc/nowdoc syntax 2018-04-13 21:35:37 +02:00
config.m4
config.w32
CREDITS
Makefile.frag Fix #70831: Compile fails on system with 160 CPUs 2015-12-06 12:37:08 +01:00
php_tokenizer.h year++ 2018-01-02 12:57:58 +08:00
tokenizer.c PHP scanner optimization 2018-03-14 01:48:17 +03:00
tokenizer_data.c Revert "Handle scanner error in first place (don't hide them from ext/tokenizer) and cheaper whitespace handlig." 2018-03-14 01:08:03 +03:00
tokenizer_data_gen.sh year++ 2018-01-02 12:57:58 +08:00