Open 0x0ACB opened 8 months ago
This has been not been fixed in master (currently 4.3).
Custom type hints, it's worth noting. It seems like https://github.com/godotengine/godot/pull/86176 does not handle this edge-case (CC @dalexeev).
This is difficult to fix without a major refactoring of the highlighter. For each new line, the context is lost (with the exception of code regions).
Wouldn't it make sense to keep the context for the current statement atleast? I.e. if inside brackets you dont discard on linebreak.
Tested versions
4.2.1
System information
Windows 10, Godot 4.2.1, Gles3 compatibility
Issue description
When adding typehints to function declarations the highlighting stops working if linebreaks are added:
Steps to reproduce
Write a function with type hints for some custom types. Add linebreaks in the parameter list
Minimal reproduction project (MRP)
-