vscode-blockman
vscode-blockman copied to clipboard
Feature Request: PHP alternative control structures
Fantastic work on this extension!
I noticed In PHP, blocks using alternative control structures like if () : ... endif; are not detected. Is there a possibility support for those could be added?
Thank you!
Thanks for your feedback. The alternative syntax of "if else" statements in PHP is kinda tricky, because in non-indentation based languages, like PHP, Blockman is searching for just brackets (curly/square/round brackets) and not colons. Maybe we can find a good parser/tokenizer for PHP so Blockman will be able to get all the blocks without exceptions. But maybe it's not very worth it for now, because I think using explicit curly brackets for "if else" statements is better than opening colon symbol in most cases.
Currently I have some problems with time, looking for a job and stuff. maybe after several months I'll be able to add and upgrade support of many languages to a whole new level.