From c08b3922dd26ae3854eda918a036209375bdb7f1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?M=C3=A1rcio=20Almada?= Date: Fri, 4 Sep 2015 00:45:49 -0300 Subject: adds missing tokens to list of semi-reserved words and regenerates test suite --- .../tests/token_get_all_TOKEN_PARSE_001.phpt | 31 +++++++++++++--------- 1 file changed, 19 insertions(+), 12 deletions(-) (limited to 'ext/tokenizer') diff --git a/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt b/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt index eb0e300964..fc166e2fc6 100644 --- a/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt +++ b/ext/tokenizer/tests/token_get_all_TOKEN_PARSE_001.phpt @@ -11,6 +11,7 @@ $x->$continue; X::continue(); $x->continue(); X::class; +$x->__halt_compiler(); class X { const CONTINUE = 1; @@ -60,22 +61,28 @@ L7: T_STRING X L7: T_DOUBLE_COLON :: L7: T_STRING class ; -L9: T_CLASS class -L9: T_STRING X +L8: T_VARIABLE $x +L8: T_OBJECT_OPERATOR -> +L8: T_STRING __halt_compiler +( +) +; +L10: T_CLASS class +L10: T_STRING X { -L10: T_CONST const -L10: T_STRING CONTINUE +L11: T_CONST const +L11: T_STRING CONTINUE = -L10: T_LNUMBER 1 +L11: T_LNUMBER 1 ; -L11: T_PUBLIC public -L11: T_VARIABLE $x +L12: T_PUBLIC public +L12: T_VARIABLE $x = -L11: T_STRING self -L11: T_DOUBLE_COLON :: -L11: T_STRING CONTINUE +L12: T_STRING self +L12: T_DOUBLE_COLON :: +L12: T_STRING CONTINUE + -L11: T_LNUMBER 1 +L12: T_LNUMBER 1 ; } -Done +Done \ No newline at end of file -- cgit v1.2.1