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
add_keyword_color in textedit does not works using symbols ([ < > ] ....) #30586
Comments
Can reproduce in 3.2.3.rc3. More comprehensive test (attach as script to a textedit): extends TextEdit
func _ready():
var chars = ""
for c in range(32, 256):
chars += char(c)
for c in chars:
add_keyword_color(c, Color(0.3,0.6,0.9,1))
#prints(ord(c), c, has_keyword_color(c), get_keyword_color(c))
for c in chars:
text += c + " "
yield(get_tree(), "idle_frame")
update() |
I'm having the same problem with version 3.2 on Solus OS. |
please fix this bug... |
This likely occurs because symbol color takes precedence over keyword color. I guess we should change syntax highlighting to highlight keywords after symbols.
Bugs are fixed on a best-effort basis (in other words, when a contributor knows how to resolve them). |
Thank you for the response! |
Godot version:
3.1
OS/device including version:
Windows 10 64 Bits
Issue description:
using command add_keyword_color from textEdit does not works if you use symbols
Steps to reproduce:
Minimal reproduction project:
The text was updated successfully, but these errors were encountered: