diff options
author | Ryan Roden-Corrent <ryan@rcorre.net> | 2023-03-05 07:43:51 -0500 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-13 21:31:53 +0100 |
commit | 06e2c6ace221f7e9a8591cf97339e3a6c530d86a (patch) | |
tree | a80141568267567ca1ac9716da78f153b08bdaca /editor/project_converter_3_to_4.h | |
parent | 9fff0fcbb53d2782d82c7fead06a7f3f2ff2eb34 (diff) |
Move tool declarations to top in 3to4.
In godot3, `tool` can follow keywords like `extends` and `class_name`
In godot4, `@tool` must be the first line in the file.
(cherry picked from commit 9a474fb99f18782b2fcafa750c1b899996e79737)
Diffstat (limited to 'editor/project_converter_3_to_4.h')
-rw-r--r-- | editor/project_converter_3_to_4.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/editor/project_converter_3_to_4.h b/editor/project_converter_3_to_4.h index b2adfac395..134273b4be 100644 --- a/editor/project_converter_3_to_4.h +++ b/editor/project_converter_3_to_4.h @@ -71,6 +71,8 @@ class ProjectConverter3To4 { uint64_t maximum_file_size; uint64_t maximum_line_length; + void fix_tool_declaration(Vector<SourceLine> &source_lines, const RegExContainer ®_container); + void rename_colors(Vector<SourceLine> &source_lines, const RegExContainer ®_container); Vector<String> check_for_rename_colors(Vector<String> &lines, const RegExContainer ®_container); |