#62: save the all text after __halt_compiler(); as Meta

This commit is contained in:
z7zmey
2018-09-13 20:07:50 +03:00
parent 4989d31874
commit b805f0b167
4 changed files with 8 additions and 4 deletions

View File

@@ -1037,7 +1037,9 @@ func TestParseAndPrintPhp5Goto(t *testing.T) {
func TestParseAndPrintPhp5HaltCompiler(t *testing.T) {
src := `<?php
__halt_compiler ( ) ;`
__halt_compiler ( ) ;
this text is ignored by parser
`
actual := printPhp5(parsePhp5(src))

View File

@@ -1146,7 +1146,9 @@ func TestParseAndPrintGroupUse(t *testing.T) {
func TestParseAndPrintHaltCompiler(t *testing.T) {
src := `<?php
__halt_compiler ( ) ;`
__halt_compiler ( ) ;
this text is ignored by parser
`
actual := print(parse(src))