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
Describe the issue
It looks like a semicolon inside a string is parsed as terminating the statement, at least sometimes.
Which language seems to have the issue? php
Are you using highlight or highlightAuto? highlight
Sample Code to Reproduce
Fiddle here: https://jsfiddle.net/c3sLm2ga/. See how the highlighting gets messed up halfway through the string in the throw statement. Oddly, double-quoted strings are also affected but in a slightly different way.
Expected behavior
publicstaticfunctionmutate() {
$result = null;
DB::transaction(function () use (): void {
if (static::$currentMutator !== null) {
thrownewLoggingMutatorException('LoggingMutator::mutate called while already in a mutation; nested mutations are not supported.');
}
$operationLogger = newOperationLogger($user);
})
}
The text was updated successfully, but these errors were encountered:
Describe the issue
It looks like a semicolon inside a string is parsed as terminating the statement, at least sometimes.
Which language seems to have the issue?
php
Are you using
highlight
orhighlightAuto
?highlight
Sample Code to Reproduce
Fiddle here: https://jsfiddle.net/c3sLm2ga/. See how the highlighting gets messed up halfway through the string in the
throw
statement. Oddly, double-quoted strings are also affected but in a slightly different way.Expected behavior
The text was updated successfully, but these errors were encountered: