exigow / intellij-gdscript

Godot Engine and GDScript support plugin for IntelliJ based IDEs
MIT License
149 stars 10 forks source link

Add support for lambda expressions with return keyword (GDScript) #149

Open exigow opened 1 year ago

exigow commented 1 year ago

Godot 4 introduced lambda expressions with in-place return keyword.

For example:

var positive_numbers = numbers.filter(func(x): return x >= 0)

This code causes false-negative error on return keyword.