haidubogdan / netbeans-php-blade-plugin

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

Blade Sintax Error Unexpected: End of File Expected: T_BLADE_COMMENT, T_BLADE_STOP #14

Closed angeljqv closed 2 years ago

angeljqv commented 2 years ago

From #12, I have that problem too, i don't know how to avoid it

<script>
// @ (
</script>
<script>
// @ ''(
</script>
@section('content')
  <td style="mso-number-format:&#39;@&#39;;"></td>
@endsection
@section('content')
  <span data-formatcode="@"></td>
@endsection

Blade Sintax Error Unexpected: End of File Expected: T_BLADE_COMMENT, T_BLADE_STOP

when after @ there is a especial character or a space it is not a blade directive

haidubogdan commented 2 years ago

Hi I've did some updates. I hope this issue is fixed. https://github.com/haidubogdan/netbeans-php-blade-plugin/releases/tag/v.1.0.0.6-beta

This parse error for the snippet bellow is due to LESS parser, I think it's not directly related with the plugin.

@section('content')
  <td style="mso-number-format:&#39;@&#39;;"></td>
@endsection
angeljqv commented 2 years ago

This parse error for the snippet bellow is due to LESS parser

@section('content')
  <td style="mso-number-format:&#39;@&#39;;"></td>
@endsection

If you disable LESS parser, Blade Sintax Error pop up, but it doesn't matter to me, thanks