too many tokens for antlr lexer inside foreach
Closed this issue · 0 comments
haidubogdan commented
@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