You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Technically, it is a problem with the PHP parser.
It is impossible to deal with this problem without impacting the performance. And since comments aren't so vital, so I added a new field to determine how to work with the comments.
$blade=new BladeOne(null,null,0,2); // the last 2 means:
// 0: means comments are converted into PHP code.
// 1: means comments are converted into HTML comments <-- some comment -->
// 2: means that comments are ignored, so it won't crash "try/case" blocks
eg.
renders to:
which gives "syntax error, unexpected '<', expecting case (T_CASE) or default (T_DEFAULT) or '}'" for the middle line.
The text was updated successfully, but these errors were encountered: