facelessuser / BracketHighlighter

Bracket and tag highlighter for Sublime Text
https://facelessuser.github.io/BracketHighlighter/
1.75k stars 245 forks source link

Support for PHP 7.4 arrow function syntax #631

Closed fadrian06 closed 8 months ago

fadrian06 commented 8 months ago

Support for PHP 7.4 short function syntax

... I lost parentheses matching when I use PHP 7.4 arrow function syntax ?

image

facelessuser commented 8 months ago

It is likely we just need to ignore the arrows. Please post in a code block an example in plain text (not an image) that we can test with. Also, please note what syntax you are using for PHP highlighting. Is it the built-in one? Or are you using a 3rd party library? If so, please link the 3rd party library.

fadrian06 commented 8 months ago

oh thanks for reply it..

sure, the snippet is

Route::get('/', fn () => view('welcome'));

The color scheme is Ayu variant Dark. The PHP syntax is the built in with Sublime Text v4-4169

facelessuser commented 8 months ago

We had this properly supported before IIRC, but syntax files get refactored all the time, changing scope names. Such changes can break us. So, thanks for reporting. A PR is up that should fix it.