You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When the "language-php" package is enabled and I'm in a PHP script, if I create a "(" character but don't close it, this screws up the formatting for everything after it for the rest of the script, whether it's 10 lines or 7000 lines and regardless of whether or not I later close the parenthesis.
This seems like it's an issue that's been around and mentioned before in the Atom issues, but since it hasn't been addressed in years and is now an issue in Pulsar, I figured I should mention it.
I propose that we add some kind of logic to the language-php package that says, if we can't find a closing parenthesis character ")" by the end of the line, we reset the formatting to normal.
Could also add some kind of toggle to turn off the string formatting in case it annoys anyone.
Steps to Reproduce
Enable language-php package with default settings,
open a php file,
insert a string variable with the start of parenthesis "(" character in the string,
create more lines of code after this string and notice the later lines are all appearing to be part of the string.
Expected behavior: Proper syntax highlighting!
Actual behavior: Broken highlighting/coloring of rest of code in script.
Reproduces how often: 100% of the time. Easily reproducible.
Versions
Pulsar 1.110.0 as well at the last version of Atom before it was sunsetted.
This is known issue, and unfortunately rather hard to fix.
Even if it's a known issue, it keeps getting waved away as too hard to fix, and if people don't reopen the issue like I did, it'll continually get ignored.
What specifically makes it hard to fix? Is there a known workaround other than just not having incomplete query strings? Incomplete strings are necessary logic pieces for a query builder script.
Also posted to Pulsar issues at pulsar-edit/pulsar#787
Description
When the "language-php" package is enabled and I'm in a PHP script, if I create a "(" character but don't close it, this screws up the formatting for everything after it for the rest of the script, whether it's 10 lines or 7000 lines and regardless of whether or not I later close the parenthesis.
This seems like it's an issue that's been around and mentioned before in the Atom issues, but since it hasn't been addressed in years and is now an issue in Pulsar, I figured I should mention it.
I propose that we add some kind of logic to the language-php package that says, if we can't find a closing parenthesis character ")" by the end of the line, we reset the formatting to normal.
Could also add some kind of toggle to turn off the string formatting in case it annoys anyone.
Steps to Reproduce
Expected behavior: Proper syntax highlighting!
Actual behavior: Broken highlighting/coloring of rest of code in script.
Reproduces how often: 100% of the time. Easily reproducible.
Versions
Pulsar 1.110.0 as well at the last version of Atom before it was sunsetted.
Additional Information
Image below taken from old issue at atom#442
The text was updated successfully, but these errors were encountered: