You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When an inline function definition within another function's argument list contains an inline if statement, the syntax highlighting of the statement following the inline if is incorrectly applied.
In this screenshot, the final my_var is colored with the color used by types in an argument list. Presumably because the statement comes after the colon : character of the if, which is the same way a type would be specified in an argument list.
Steps to reproduce
func test():
var my_var = true
tree_entered.connect(func(): if my_var: my_var = false)
Minimal reproduction project (MRP)
See steps to reproduce
The text was updated successfully, but these errors were encountered:
radishes
changed the title
Incorrect syntax highlighting of inline function body
Incorrect syntax highlighting of inline function body within the argument list of a function call
May 7, 2024
Tested versions
v4.2.2.stable.official [15073af]
System information
Windows 10
Issue description
When an inline function definition within another function's argument list contains an inline
if
statement, the syntax highlighting of the statement following the inlineif
is incorrectly applied.In this screenshot, the final
my_var
is colored with the color used by types in an argument list. Presumably because the statement comes after the colon:
character of theif
, which is the same way a type would be specified in an argument list.Steps to reproduce
Minimal reproduction project (MRP)
See steps to reproduce
The text was updated successfully, but these errors were encountered: