rouge-ruby / rouge

A pure Ruby code highlighter that is compatible with Pygments
https://rouge.jneen.net/
Other
3.3k stars 732 forks source link

Initial namespace backslashes are marked as errors in PHP #1977

Closed Racso closed 7 months ago

Racso commented 11 months ago

Name of the lexer PHP

Code sample

function myFunction(\MyApp\MyClass $param): void
{
    $param->doSomething(\App\MyOtherClass::class);
}

Result

image

Additional context

nsfisis commented 7 months ago

This issue appears to be the one I previously addressed. The fix is included in version 4.1.1 or later.

CHANGELOG

php: fix highlight of fully-qualified identifiers (fix #1718) (https://github.com/rouge-ruby/rouge/pull/1924/ by nsfisis)

tancnle commented 7 months ago

Closed since it has already been fixed.