mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-10-08 19:12:23 +00:00
Fix trailing-comma errors on method calls
We were only matching `f(a, ` patterns, and not `x:f(a, `. We now just match against any usages of call_args - hadn't quite realised we could do that!
This commit is contained in:
File diff suppressed because one or more lines are too long
@@ -478,6 +478,7 @@ Unexpected ) in function call.
|
|||||||
1 | f(2, )
|
1 | f(2, )
|
||||||
| ^ Tip: Try removing this ,.
|
| ^ Tip: Try removing this ,.
|
||||||
```
|
```
|
||||||
|
|
||||||
```lua
|
```lua
|
||||||
f(2, 3, )
|
f(2, 3, )
|
||||||
```
|
```
|
||||||
@@ -491,3 +492,17 @@ Unexpected ) in function call.
|
|||||||
1 | f(2, 3, )
|
1 | f(2, 3, )
|
||||||
| ^ Tip: Try removing this ,.
|
| ^ Tip: Try removing this ,.
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```lua
|
||||||
|
x:f(2, 3, )
|
||||||
|
```
|
||||||
|
|
||||||
|
```txt
|
||||||
|
Unexpected ) in function call.
|
||||||
|
|
|
||||||
|
1 | x:f(2, 3, )
|
||||||
|
| ^
|
||||||
|
|
|
||||||
|
1 | x:f(2, 3, )
|
||||||
|
| ^ Tip: Try removing this ,.
|
||||||
|
```
|
||||||
|
Reference in New Issue
Block a user