Commit 3a94de0
authored
Update operator precedence table (#2625)
* Update operator precedence table
Updates the table to match the information per the parser.
This adds entries for:
* `=>`
* `include`, `include_once`, `require`, `require_once`
* `fn`
* `throw`
Ref: https://github.com/php/php-src/blob/2e2416825d2270d256f7597904e14e386cc0d854/Zend/zend_language_parser.y#L54-L82
Fixes 2622
* Operator precedence table: change links for double arrow to yield
* Operator precedence table: attempt to clarify fn arrow entry
* Operator precedence table: attempt to clarify fn arrow entry [2]
---------
Co-authored-by: jrfnl <jrfnl@users.noreply.github.com>1 parent 72d861d commit 3a94de0
1 file changed
Lines changed: 27 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
256 | 256 | | |
257 | 257 | | |
258 | 258 | | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
259 | 266 | | |
260 | 267 | | |
261 | 268 | | |
| |||
289 | 296 | | |
290 | 297 | | |
291 | 298 | | |
| 299 | + | |
| 300 | + | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
292 | 319 | | |
293 | 320 | | |
294 | 321 | | |
| |||
0 commit comments