Fixed shader editor comment highlighting

This commit is contained in:
Brian Semrau 2020-07-28 15:16:24 -04:00
parent 91b21e5fbc
commit 69d1c48b73
3 changed files with 4 additions and 4 deletions

View file

@ -172,7 +172,7 @@ void ShaderTextEditor::_load_theme_settings() {
const Color comment_color = EDITOR_GET("text_editor/highlighting/comment_color");
syntax_highlighter->clear_color_regions();
syntax_highlighter->add_color_region("/*", "*/", comment_color, false);
syntax_highlighter->add_color_region("//", "", comment_color, false);
syntax_highlighter->add_color_region("//", "", comment_color, true);
}
void ShaderTextEditor::_check_shader_mode() {