Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add font-lock for multiple catch #567

Merged
merged 1 commit into from
Aug 27, 2019
Merged

Conversation

zonuexe
Copy link
Member

@zonuexe zonuexe commented Aug 27, 2019

This syntax was added in PHP 7.1.

The rule allows line breaks, but the pattern is not subject to coloring due to font lock restrictions. In this trial and error, I considered replacing some CC-Mode functions, but I gave up.

This syntax was added in PHP 7.1.

 * https://wiki.php.net/rfc/multiple-catch
 * https://www.php.net/manual/language.exceptions.php
 * https://www.php.net/manual/migration71.new-features.php#migration71.new-features.mulit-catch-exception-handling

The rule allows line breaks, but the pattern is not subject to
coloring due to font lock restrictions. In this trial and error,
I considered replacing some CC-Mode functions, but I gave up.
@zonuexe
Copy link
Member Author

zonuexe commented Aug 27, 2019

Before

スクリーンショット 2019-08-28 2 20 39

After

スクリーンショット 2019-08-28 2 18 39

@zonuexe zonuexe merged commit 5a5b907 into master Aug 27, 2019
@zonuexe zonuexe deleted the font-lock/support-multiple-catch branch August 27, 2019 17:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant