Treat the entire scene folder as one unit in the scu build.

This commit is contained in:
Relintai 2023-12-16 13:38:11 +01:00
parent fb24aad9be
commit 0e3293ef1b
2 changed files with 12 additions and 10 deletions

View File

@ -136,7 +136,7 @@ void SyntaxHighlighter::_bind_methods() {
//////////////////////////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////////////////////////
static bool _is_char(CharType c) { static bool _is_char_syntax_highlighter(CharType c) {
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_'; return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || c == '_';
} }
@ -317,7 +317,7 @@ Dictionary CodeHighlighter::_get_line_syntax_highlighting(int p_line) {
} }
} }
if (!in_word && _is_char(str[j]) && !is_number) { if (!in_word && _is_char_syntax_highlighter(str[j]) && !is_number) {
in_word = true; in_word = true;
} }

View File

@ -306,14 +306,16 @@ def generate_scu_files(verbose, is_release_build):
process_folder(["modules/mbedtls"]) process_folder(["modules/mbedtls"])
process_folder(["scene"]) #process_folder(["scene"])
process_folder(["scene/audio"]) #process_folder(["scene/audio"])
process_folder(["scene/debugger"]) #process_folder(["scene/debugger"])
process_folder(["scene/2d"]) #process_folder(["scene/2d"])
process_folder(["scene/animation"]) #process_folder(["scene/animation"])
process_folder(["scene/gui"]) #process_folder(["scene/gui"])
process_folder(["scene/main"]) #process_folder(["scene/main"])
process_folder(["scene/resources"]) #process_folder(["scene/resources"])
process_folder(["scene", "audio", "debugger", "2d", "animation", "gui", "gui/resources", "main", "resources", "resources/default_theme", "resources/font", "resources/material", "resources/mesh", "resources/shapes_2d" ])
process_folder(["servers"]) process_folder(["servers"])
process_folder(["servers/rendering"]) process_folder(["servers/rendering"])