Fix script highlighting for classes that begin with "_"
This commit is contained in:
parent
3a3ce982b0
commit
56bc005643
1 changed files with 5 additions and 1 deletions
|
@ -327,7 +327,11 @@ void ScriptTextEditor::_load_theme_settings() {
|
|||
|
||||
for(List<StringName>::Element *E=types.front();E;E=E->next()) {
|
||||
|
||||
get_text_edit()->add_keyword_color(E->get(),type_color);
|
||||
String n = E->get();
|
||||
if (n.begins_with("_"))
|
||||
n = n.substr(1, n.length());
|
||||
|
||||
get_text_edit()->add_keyword_color(n,type_color);
|
||||
}
|
||||
|
||||
//colorize comments
|
||||
|
|
Loading…
Reference in a new issue