This repository has been archived by the owner on Mar 3, 2023. It is now read-only.
Nested PHP scope not detected properly #7665
Labels
wrong-repo
Issues that are filed to the wrong Atom repository.
The scope of a block of PHP code that is enclosed inside of a separate language (ie. within a JS block in a page) is not detected properly if the enclosing PHP tags are both on the same line. If the tags are not separated onto different lines then Atom thinks the code is just part of the enclosing code block.
For example, this bit of code is incorrectly detected as part of the JavaScript block:
While this code is properly detected as being a PHP block:
This issue is present on a completely fresh Atom installation, as well as one with a multitude of plugins.
Atom Version: 1.0.0
Operating Systems:
The text was updated successfully, but these errors were encountered: