#70: [php5] inherit meta.Data at assign.Assign

This commit is contained in:
z7zmey
2019-01-04 10:01:12 +02:00
parent 61be88381e
commit f2e5271e2a
2 changed files with 292 additions and 288 deletions
+290 -288
View File
File diff suppressed because it is too large Load Diff
+2
View File
@@ -3408,6 +3408,8 @@ expr_without_variable:
// save comments // save comments
$2.Meta.SetTokenName(meta.EqualToken).AppendTo($$.GetMeta()) $2.Meta.SetTokenName(meta.EqualToken).AppendTo($$.GetMeta())
$1.GetMeta().Cut(newInheritMetaFilter()).PrependTo($$.GetMeta())
yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL) yylex.(*Parser).returnTokenToPool(yyDollar, &yyVAL)
} }
| variable '=' '&' variable | variable '=' '&' variable