-
-
Notifications
You must be signed in to change notification settings - Fork 21.4k
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
Fix for GDScriptHighlighter dictionaries as function arguments #82326
Fix for GDScriptHighlighter dictionaries as function arguments #82326
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good, mostly style nitpicks.
While at it, you can also fix the comments near your changed lines to use "Sentence case." And don't forget to commit amend. |
3790e45
to
a050b3b
Compare
Commit has been amended 👍. Ready for another review. |
a050b3b
to
a8221eb
Compare
a8221eb
to
6fa0eb5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good to me. I've tested and it works with braces in string literals. Perhaps in some cases like multiline code this does not work, but this is not something that we could fix within a small PR.
Also I noticed a bug with parentheses:
bool in_function_args = false;
should be replaced with int in_function_args = 0;
like in this PR.
@adeneve Would you be able to update this PR with this additional fix? If so, please do it by amending the commit, so it stays a single commit for both related fixes. |
Hi @akien-mga , yes i'll try to take a look some time later today. |
6fa0eb5
to
c8f7f37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Code review LGTM
c8f7f37
to
73c8a95
Compare
73c8a95
to
d8ad0ca
Compare
Fix for gdscript_highlighter. When passing a dictionary as a function argument, the dictionary values were being highlighted green as if they were types.
d8ad0ca
to
978fcaf
Compare
Thanks! And congrats for your first merged Godot contribution 🎉 |
Fixes #81362
Dictionaries passed as function arguments were having their values highlighted green due to being misinterpreted as function argument hints.
Pics below and after code change.