-
Notifications
You must be signed in to change notification settings - Fork 120
Heredoc containing a closing PHP tag breaks syntax highlighting #10
Comments
Confirm on that, it's a bit annoying |
This is also happening when there is comment block syntax ( The file in my screenshot is part of the Symfony SensioDistributionBundle, available here. |
yep. I see it too. |
Likewise for single quotes ( |
@zr9 we've already concluded that it would be worthwhile fixing the root cause of this problem in first-mate package (see related discussion), so that all other bugs would fix on their own. The current solution is rather elegant (although, not working). But it's still nice seeing someone giving their go at it. |
@Ingramz Oh i'm not read references, so core bug already submitted. Then np :) But current solution is seems like working, so it can be fine as temporally fix until atom fixed "repository" |
@zr9 sure, that's something people have suggested before. You can compare your solution to the one in the pull request I submitted above. The changes got undone with later commits, but if you keep track of the commits throughout the pull request, you can sort-of see what was done there. |
@Ingramz Yup almost similar, difference in "interpolation" since injection rule is not work, so interpolation need to get moved inside "heredoc_interior" after that it get fully working in current state, because at first heredoc get covered by main rules, then interpolated by php rules inside. Look on screen i'm posted above, or i'm can attach code if you wish so. So technically in current state full fix possible, and it even will be not dirty, only dirty thing is "interpolation" repeat. And more when repository will be fixed in core, it continue to work, so not get broken. |
@Ingramz Tested, looks totally fine, here is screenshots. Except of color issues, but that is atom/core other bug(or not bug). |
@Ingramz So should i'm push commit to fix this one? Cos there is no seems any activity on repository fix in mate |
@zr9 sure, you can do it. |
@Ingramz Okay then once @50Wliu merge things, i'm clean file, and then update this one |
@zr9 did you sent a PR? having the same issue here. |
@diego-vieira Not yet, have a lot less time now, so slowdown a much, but still have plans to sent PR, or you can do so if you wish to. |
Fixed by #184. |
I have a file containing the following:
The syntax formatting is picking up the
?>
within the heredoc as a closing PHP tag, and as such the syntax highlighting is broken from this point on in the file.The text was updated successfully, but these errors were encountered: