Shader documentation syntax fails to terminate with /**/
causing large editor freezes (regression 4.3-dev6)
#91547
Labels
Milestone
Tested versions
System information
Godot v4.3.dev6 - Windows 10.0.22631 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.4601) - Intel(R) Core(TM) i7-10700F CPU @ 2.90GHz (16 Threads)
Issue description
After swapping from 4.3-dev5 to 4.3-dev6, existing shader code from my project included the
/**/
substring in various places. When the inspector attempts to process any shader containing this substring, there is a large lagspike (3 seconds with the MRP on my system).This also causes the documentation syntax highlighting to affect the rest of the script. Perhaps caused by #90161 , related to #91424 by the appearance of the issue:
Steps to reproduce
/**/
to the top of the code. (The amount of lag is proportional to the amount of code after the/**/
.)Minimal reproduction project (MRP)
shader-syntax-lag.zip
The text was updated successfully, but these errors were encountered: