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
In this context, the %character is treated as a remainder / string formatting operator because it comes after the "operand" (close parenthesis). I don't think it's possible to fix this without a major refactoring of the highlighter. But I don't mean that this is a reason to close this issue, just clarifying that we probably shouldn't expect a fix soon.
To me, using inline annotations with statements looks like an undesirable style. This is ok with short definitions (like @onready and @export), but otherwise I prefer annotations on separate lines.
To me, using inline annotations with statements looks like an undesirable style. This is ok with short definitions (like @onready and @export), but otherwise I prefer annotations on separate lines.
I agree, but sometimes, you just have a lot of these lines and want to save space. That's how I discovered it.
Godot version
4.1.1
System information
Any
Issue description
When using unique names with annotations on one line, the unique name is not highlighted, but the script is still valid.
Steps to reproduce
Have an annotation and inline unique name like this:
@warning_ignore("unsafe_property_access") %MyLabel.text = "Hello World!"
.Minimal reproduction project
reproduction.zip
The text was updated successfully, but these errors were encountered: