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

fix: endforelse causing formatting error #486

Merged
merged 2 commits into from
Feb 21, 2022
Merged

fix: endforelse causing formatting error #486

merged 2 commits into from
Feb 21, 2022

Conversation

notdian
Copy link
Contributor

@notdian notdian commented Feb 21, 2022

Blade formatter was splitting the @endforeach directive into
@endfor each

causing a fatal error, It seems like the order of keywords was wrong and @endfor was matching before @Endforeach, there might be other directives in the list which suffer from the same problem, maybe a better fix would using a wordmatch, even though reordering the directives fixed the problem in my case.

image

@notdian notdian requested a review from shufo as a code owner February 21, 2022 08:56
@shufo
Copy link
Owner

shufo commented Feb 21, 2022

@dianfishekqi
Great. Thank you so much!

@shufo shufo changed the title Fix @endforelse formating causing fatal error fix: endforelse causing formatting error Feb 21, 2022
@shufo shufo merged commit 9ff3753 into shufo:master Feb 21, 2022
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.

None yet

2 participants