godot
godot copied to clipboard
Resolve conflict between shader uniform tooltips `/**` and general annotation `/**/`.
see https://github.com/godotengine/godot/issues/91547#issuecomment-2093992570
fix #91547
What happens if someone uses:
/**
* Some description.
*/
with no space (but only end of line, $
) on the first line?
IMO this should be supported so you might need to support any whitespace (space, tab) or end of line.
Or alternatively, match /**[^/]
instead.
This PR has been modified again to solve the following 2 problems.
1 Change the regular to \*\*\s
start match, to solve the problem of lagging.
2 Add a color_region of /**/
to solve the region interrupt problem. (This is still a stopgap measure, and it would be better to rewrite _get_line_syntax_highlighting_impl .)
Thanks!