mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2024-11-05 09:36:19 +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, )
|
||||
| ^ Tip: Try removing this ,.
|
||||
```
|
||||
|
||||
```lua
|
||||
f(2, 3, )
|
||||
```
|
||||
@ -491,3 +492,17 @@ Unexpected ) in function call.
|
||||
1 | f(2, 3, )
|
||||
| ^ 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