haidubogdan / netbeans-php-blade-plugin

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

too many tokens for antlr lexer inside foreach #52

Closed haidubogdan closed 8 months ago

haidubogdan commented 8 months ago
@foreach(My_Class::getData() as $id => $data)
    <option value="{{$id}}">{{$data['label']}}</option>
@endforeach
L1: 137 (DIRECTIVE) | 133 |  (PHP_EXPRESSION)M |  (PHP_EXPRESSION)y |  (PHP_EXPRESSION)_ |  (PHP_EXPRESSION)C |  (PHP_EXPRESSION)l | 135 |  (PHP_EXPRESSION)s |  (PHP_EXPRESSION): |  (PHP_EXPRESSION): |  (PHP_EXPRESSION)g |  (PHP_EXPRESSION)e |  (PHP_EXPRESSION)t |  (PHP_EXPRESSION)D |  (PHP_EXPRESSION)a |  (PHP_EXPRESSION)t |  (PHP_EXPRESSION)a | 133 | 134 | 135 |  (PHP_VARIABLE)$id | 136 |  (PHP_VARIABLE)$data | 134 | 
L2: 2113 |  (HTML)value | 117 | 109 |  (PHP_VARIABLE)$id | 121 |  (HTML)> | 109 |  (PHP_VARIABLE)$data |  (PHP_IDENTIFIER) | 121 |  (HTML)</option> | 
L3: 338 (DIRECTIVE) | -1

This can decrease parsing performance