mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-12 10:20:28 +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:
parent
0349c2b1f9
commit
ed3a17f9b9
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 ,.
|
||||||
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user