Both the linter and parser tools correcly function when parsing one line Lambda functions. However, if the Lambda function is defined in multiple lines, an exception is thrown and the files remain unmodified.
Steps to reproduce
Run gdlint or gdformat on the "lambda_function_test.gd" script, found in the attached sample project.
Attatchments
The mentioned sample project "gdscript_toolkit_bug_lambda_functions" along with a .txt containing the error code given when attempting the mentioned steps to reproduce are compressed in the following .zip:
Issue
Both the linter and parser tools correcly function when parsing one line Lambda functions. However, if the Lambda function is defined in multiple lines, an exception is thrown and the files remain unmodified.
Steps to reproduce
Run gdlint or gdformat on the "lambda_function_test.gd" script, found in the attached sample project.
Attatchments
The mentioned sample project "gdscript_toolkit_bug_lambda_functions" along with a .txt containing the error code given when attempting the mentioned steps to reproduce are compressed in the following .zip:
gdscript_toolkit_bug_lambda_functions.zip