EmranMR / tree-sitter-blade

tree-sitter grammar for Laravel blade files
MIT License
186 stars 8 forks source link

Closing tags #1

Closed EmranMR closed 1 year ago

EmranMR commented 1 year ago

There is a conflict between closing tags and the actual containing grammer. for example inline_raw and $.text in directive_parameter

in the example

@php(foo()->bar())

The inline_raw is considered @php(foo()

EmranMR commented 1 year ago

fixed by parenthesis balancing. https://github.com/EmranMR/tree-sitter-blade/blob/0ac0578d359cda254ed81aa128ca24541a07d42c/grammar.js#L361