Closed
Description
Name of the lexer
Swift
Code sample
A sample of the code that produces the bug.
funcWithLambdaArg { x in x + 5 }
funcWithLambdaArg { $0 + 5 }
funcWithLambdaArg({ x in x + 5 })
Additional context
It may not be possible to tokenise the identifier funcWithLambdaArg
when a lambda is the only argument because of other possibilities (I'm not familiar enough with Swift to know whether this is the case or not).
What do you think @johnfairh / @lordcodes?