fix await operator priority

This commit is contained in:
Artemy 2023-12-27 20:28:13 +03:00
parent 6d8f10b23f
commit a79783cf1d

View file

@ -8,6 +8,7 @@
| -------------------------------------- | ------------- | -------------- | ---- | | -------------------------------------- | ------------- | -------------- | ---- |
| Method calls, Members | Left to Right | call | ✅ | | Method calls, Members | Left to Right | call | ✅ |
| Function calls | Left to Right | call | ✅ | | Function calls | Left to Right | call | ✅ |
| await | Right to Left | call | ✅ |
| `!` `++` `--` `()` `~` | Left to Right | factor | ✅ | | `!` `++` `--` `()` `~` | Left to Right | factor | ✅ |
| `^` | Left to Left | power | ✅ | | `^` | Left to Left | power | ✅ |
| `*` `/` `%` | Left to Right | term | ✅ | | `*` `/` `%` | Left to Right | term | ✅ |
@ -22,5 +23,5 @@
| `..` | Left to Right | range | ✅ | | `..` | Left to Right | range | ✅ |
| `?:` | Right to Left | ternary | ✅ | | `?:` | Right to Left | ternary | ✅ |
| `=` `:=` `+=` `-=` `*=` `/=` `^=` `%=` | Right to Left | assign | ✅ | | `=` `:=` `+=` `-=` `*=` `/=` `^=` `%=` | Right to Left | assign | ✅ |
| await yield | Right to Left | await_yield | ✅ | | yield | Right to Left | await_yield | ✅ |
| `,` | None | comma | ✅ | | `,` | None | comma | ✅ |