diff --git a/php7/parser.go b/php7/parser.go index bf082bb..c8cb795 100644 --- a/php7/parser.go +++ b/php7/parser.go @@ -13,6 +13,14 @@ import ( "github.com/z7zmey/php-parser/scanner" ) +var inheritMetaFilter = meta.AndFilter( + meta.TokenNameFilter(meta.NodeStart), + meta.OrFilter( + meta.TypeFilter(meta.CommentType, meta.WhiteSpaceType), + meta.ValueFilter("