Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gdscript syntax highlighter colors some typed variable names with the same color as the type #86802

Closed
radishes opened this issue Jan 4, 2024 · 1 comment · Fixed by #86176

Comments

@radishes
Copy link
Contributor

radishes commented Jan 4, 2024

Tested versions

bb1006b (master branch from today.) I've noticed this since 4.3 dev began.

System information

Windows 10

Issue description

If strong typing is used in a list of parameters in a function definition, variable names past the first will be colored with the same color as the types.

image

In this screenshot, the coloration of another_argument by the syntax highlighter seems incorrect. In past versions of Godot, another_argument would have been the same color as an_argument.

Steps to reproduce

Create a gdscript function which accepts two or more parameters which are strongly typed.

Minimal reproduction project (MRP)

func my_func(an_argument:int, another_argument:Vector2):
	pass

@Maran23
Copy link
Contributor

Maran23 commented Jan 5, 2024

Probably related to #85812 as well. Fixed by the same PR.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants