summaryrefslogtreecommitdiffstats
path: root/modules/gdscript/gdscript_parser.cpp
diff options
context:
space:
mode:
authorThaddeus Crews <repiteo@outlook.com>2024-11-15 10:42:45 -0600
committerThaddeus Crews <repiteo@outlook.com>2024-11-15 10:42:45 -0600
commite9ce3932b395ced7a84da7adf4fffa6b4b9493e4 (patch)
tree2ae22b48a7cc5d5587d421f7725c433baff66194 /modules/gdscript/gdscript_parser.cpp
parenta52e28436eaa089ee37d15134596b2e8d5cf27a6 (diff)
parentcab80cb97da303867bbc4c10aaa18c7ccef51287 (diff)
downloadredot-engine-e9ce3932b395ced7a84da7adf4fffa6b4b9493e4.tar.gz
Merge pull request #98099 from dalexeev/pot-gen-add-comment-support
POT Generator: Add support for `TRANSLATORS:` and `NO_TRANSLATE` comments
Diffstat (limited to 'modules/gdscript/gdscript_parser.cpp')
-rw-r--r--modules/gdscript/gdscript_parser.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/gdscript/gdscript_parser.cpp b/modules/gdscript/gdscript_parser.cpp
index ee8d53639c..12e71004db 100644
--- a/modules/gdscript/gdscript_parser.cpp
+++ b/modules/gdscript/gdscript_parser.cpp
@@ -409,6 +409,10 @@ Error GDScriptParser::parse(const String &p_source_code, const String &p_script_
parse_program();
pop_multiline();
+#ifdef TOOLS_ENABLED
+ comment_data = tokenizer->get_comments();
+#endif
+
memdelete(text_tokenizer);
tokenizer = nullptr;