z7zmey / php-parser

PHP parser written in Go

Home Page:https://php-parser.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Suggest Force print "?>"

blue-bird1 opened this issue · comments

When I tried to print the code multiple times, Found if there is no InlineHTML, will not print ?>.If you only print once this will not be a problem, but I think printing ?> might be better

The main idea is that an AST related to a file as one to one. You can merge multiple AST into one Root node and then print. Or print ?> manually.