Skip to content

Fixes for latest PHP - #50

Merged
kaste merged 2 commits into
SublimeLinter:masterfrom
gerardroche:master
Jul 13, 2022
Merged

kaste merged 2 commits into
SublimeLinter:masterfrom
gerardroche:master

Conversation

@gerardroche

@gerardroche gerardroche commented Jul 12, 2022 •

Copy link
Copy Markdown
Contributor

Includes some regex fixes for latest PHP versions and some improved error message filtering.

  • Removes trailing text like "Standard input code", " in -", " on ", in error messages in the status message
  • Fixes parsing some errors in newer versions of PHP

Re: #48 (comment)

Includes some regex fixes for latest PHP versions and some improved
error message filtering.
@gerardroche gerardroche changed the title Fixes for latest SublimeLinter Fixes for latest PHP Jul 12, 2022
Comment thread linter.py Outdated
Comment thread tests/test_regex.py
@kaste

kaste commented Jul 12, 2022

Copy link
Copy Markdown
Member

You don't change the selector here. Is that still needed? If so, must we do this behind a version check?

E.g.

'selector': 'source.php, text.html.basic' if int(sublime.version()) < 4134 else '...'

@gerardroche

Copy link
Copy Markdown
Contributor Author

Yes, this PR doesn't fix the selector issue. These were just small fixes I've had in a local branch for a long time, I just didn't get around to sending a PR for them.

@kaste
kaste merged commit 1f0f5b5 into SublimeLinter:master Jul 13, 2022
@kaste

kaste commented Jul 13, 2022

Copy link
Copy Markdown
Member

Cool, I just merge this then.

@kaste

kaste commented Jul 15, 2022 •

Copy link
Copy Markdown
Member

FWIW I could simplify the tests further (0d75578) so that they don't leak implementation details. Thanks for nudging in the right direction.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants