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
Also, creating an anonymous class without parentheses will make Pygments choke:
$containerObject = new class {
public $something;
}
I tried modifying the PHP lexer and testing in the command line, unfortunately, it is still a bit too complex for me to fix. Luckily, I found I could just include a pair of parentheses after the class and it would be fine.
$containerObject = new class() {
public $something;
}
The complex curly issue is minor, and does not seem to make Pygments choke up completely.
The text was updated successfully, but these errors were encountered:
jacobseated
changed the title
PHP: Complex Curly Syntax and Anonymous classes
PHP: Complex Curly Syntax, and Anonymous classes
May 6, 2020
Certain things are not supported by the PHP lexer, specifically complex curly syntax seem to result in red boxes around the doller sign ($):
${'whatever'} = '';
becomes:
[$]{'whatever'} = '';
Also, creating an anonymous class without parentheses will make Pygments choke:
I tried modifying the PHP lexer and testing in the command line, unfortunately, it is still a bit too complex for me to fix. Luckily, I found I could just include a pair of parentheses after the class and it would be fine.
The complex curly issue is minor, and does not seem to make Pygments choke up completely.
The text was updated successfully, but these errors were encountered: