PHP autocomplete in unclosed <?php ?> is broken in ST3

Mark Gulyaev 7 years ago 0
When I try to use autocomplete in file without '?>' in the end, it writes that there is no available completion. If I add the ?>, it starts working.

Autocompletion doesn't work only in global scope.

I've reproduced it on the Windows 7 x64 and 8 x64.

Builds 3030 and 3021.

To reproduce, just create a new PHP file, write <?php or <?, press enter and Ctrl+Space