-
-
Notifications
You must be signed in to change notification settings - Fork 21.6k
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
Impossible to use symbols as a comment marker #96472
Comments
Currently, markers names follow the same rules as GDScript identifiers: should starts with |
@bruvzg I see, but then i think it should be mention in the description (the actual description is blank) or have some kind of warning because it feel just weird like this. |
I can confirm that during the work on #79761 this limitation was intended. It is done to speed up comment marker searches using a hashmap. Yes, the limitation should be documented, we just need to move
No, it only uses godot/modules/gdscript/editor/gdscript_highlighter.cpp Lines 205 to 231 in 8120e03
|
Tested versions
System information
Godot v4.3.stable - Windows 10.0.22631 - GLES3 (Compatibility) - Intel(R) Iris(R) Xe Graphics (Intel Corporation; 31.0.101.5186) - 12th Gen Intel(R) Core(TM) i7-1255U (12 Threads)
Issue description
It seems the text editor does not support, symbols (such as : §, ?, !, !!) as comment marker
![image](https://private-user-images.githubusercontent.com/121884357/363686737-1f8b3a29-9220-4422-bdde-431a400a92b1.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjEyMDYsIm5iZiI6MTczOTQyMDkwNiwicGF0aCI6Ii8xMjE4ODQzNTcvMzYzNjg2NzM3LTFmOGIzYTI5LTkyMjAtNDQyMi1iZGRlLTQzMWE0MDBhOTJiMS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNDI4MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0zYThjZDRkMjFhNGMwMzIwYzVmZDYwZDcwMTliYWE0NjUyNGQ5MDE3NzcxMGZjYzdjOTk2ZTBhNjkwZjU0YzI0JlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.ZN8Y6gj-EJLunJh_deTM8Qr31W2SGi7Yw0MuWBFeSrs)
The comment doesn't use the corresponding color and keep the normal comment color compared to a comment marker with letters and numbers
![image](https://private-user-images.githubusercontent.com/121884357/363686939-a45ee929-8cf6-4a84-b3d5-594f9a991fba.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3Mzk0MjEyMDYsIm5iZiI6MTczOTQyMDkwNiwicGF0aCI6Ii8xMjE4ODQzNTcvMzYzNjg2OTM5LWE0NWVlOTI5LThjZjYtNGE4NC1iM2Q1LTU5NGY5YTk5MWZiYS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjUwMjEzJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI1MDIxM1QwNDI4MjZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT03NmRkMjMyMzk5NmFkNWMxNTQ3NWNmZmNlM2YwY2JmOTQ4N2ZmZTA1MjFiMzgzMjc4OTNlNWRkMzczMDkzYTgwJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.KIPqryItmctVtKDnxReTIXMNzC1xDqiNdGgdLPCoqAw)
Steps to reproduce
Minimal reproduction project (MRP)
N/A
The text was updated successfully, but these errors were encountered: