Skip to content

Commit 03ab57c

Browse files
authored
Add natural URL shortcuts for operators and language constructs (#767) (#1814)
Adds intuitive shortcut aliases like php.net/operator.precedence, php.net/backtick.operator, php.net/string.type, php.net/statements, etc. Supports both dot and hyphen separators for consistency.
1 parent 5bee728 commit 03ab57c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

error.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -398,6 +398,38 @@
398398
"htaccess" => "configuration.changes",
399399
"php_value" => "configuration.changes",
400400

401+
"operator.precedence" => "language.operators.precedence",
402+
"operator-precedence" => "language.operators.precedence",
403+
"precedence" => "language.operators.precedence",
404+
"arithmetic.operators" => "language.operators.arithmetic",
405+
"arithmetic-operators" => "language.operators.arithmetic",
406+
"assignment.operators" => "language.operators.assignment",
407+
"assignment-operators" => "language.operators.assignment",
408+
"bitwise.operators" => "language.operators.bitwise",
409+
"bitwise-operators" => "language.operators.bitwise",
410+
"comparison.operators" => "language.operators.comparison",
411+
"comparison-operators" => "language.operators.comparison",
412+
"error.control" => "language.operators.errorcontrol",
413+
"error-control" => "language.operators.errorcontrol",
414+
"backtick" => "language.operators.execution",
415+
"backtick.operator" => "language.operators.execution",
416+
"backtick-operator" => "language.operators.execution",
417+
"execution.operator" => "language.operators.execution",
418+
"increment.operators" => "language.operators.increment",
419+
"increment-operators" => "language.operators.increment",
420+
"logical.operators" => "language.operators.logical",
421+
"logical-operators" => "language.operators.logical",
422+
"string.operators" => "language.operators.string",
423+
"string-operators" => "language.operators.string",
424+
"type.operators" => "language.operators.type",
425+
"type-operators" => "language.operators.type",
426+
"string.type" => "language.types.string",
427+
"array.type" => "language.types.array",
428+
"object.type" => "language.types.object",
429+
"statements" => "control-structures.intro",
430+
"control.structures" => "control-structures.intro",
431+
"control-structures" => "control-structures.intro",
432+
401433
"ternary" => "language.operators.comparison",
402434
"instanceof" => "language.operators.type",
403435
"if" => "language.control-structures",

0 commit comments

Comments
 (0)