1
0
mirror of https://github.com/php/web-php.git synced 2026-03-23 23:02:13 +01:00

Handle ?:, ??, and ??= in index.php

This commit is contained in:
Sara Golemon
2021-05-20 15:01:40 +00:00
parent cf6c402b48
commit bfb30b5a2d
2 changed files with 17 additions and 3 deletions

View File

@@ -319,9 +319,10 @@ $uri_aliases = array (
"splat" => "functions.arguments",
"arrow" => "functions.arrow",
"fn" => "functions.arrow",
"?:" => "language.operators.comparison",
"??" => "language.operators.comparison",
"??=" => "language.operators.assignment",
// ?:, ??, ??=
// These shortcuts can not be captured here since they
// don't actually produce a 404 error.
// Instead, we have a small check in index.php directly.
"dowhile" => "control-structures.do.while",