haidubogdan / netbeans-php-blade-plugin

Netbeans 18+ module plugin for php blade template files
Apache License 2.0
25 stars 4 forks source link

[BUG] Netbeans freezes on `?:` ternary operator. #65

Closed parallels999 closed 1 month ago

parallels999 commented 4 months ago

Try to write letter by letter on a blade file

@test($test ?: $default)
haidubogdan commented 4 months ago

Hi, Thank you for the observation. Should be ok with the latest release : https://github.com/haidubogdan/netbeans-php-blade-plugin/releases

parallels999 commented 4 months ago

Thanks

haidubogdan commented 2 months ago

It seems that the presence of '?' near ':' charcter still triggers freeze on delete action.

haidubogdan commented 1 month ago

After debugging the issue inside the IDE modules. I found to be due to a infinite while loop triggered by Brace Matcher if the first token is a parenthesis or a bracket for which I created a issue https://github.com/apache/netbeans/issues/7803

For the moment the best solution is to not embed parenthesis or combination of parenthesis and brakets for php embedded tokens. This implementation is available since version 2.5.05. For the moment It covers a maximum of 2 consecutive parenthesis.