From ba08017bec44815202186a08707a8f2fe4789dfe Mon Sep 17 00:00:00 2001 From: Danil Alexeev Date: Mon, 23 Dec 2024 22:53:50 +0300 Subject: [PATCH] GDScript: Document `@warning_ignore_start` and `@warning_ignore_restore` --- _extensions/gdscript.py | 2 ++ tutorials/scripting/gdscript/warning_system.rst | 16 +++++++++++----- 2 files changed, 13 insertions(+), 5 deletions(-) diff --git a/_extensions/gdscript.py b/_extensions/gdscript.py index 59c99cc3f3a..533732158af 100644 --- a/_extensions/gdscript.py +++ b/_extensions/gdscript.py @@ -428,6 +428,8 @@ def innerstring_rules(ttype): "@static_unload", "@tool", "@warning_ignore", + "@warning_ignore_restore", + "@warning_ignore_start", ), prefix=r"(?` +and :ref:`@warning_ignore_restore ` +annotations. You can omit the latter if you want to ignore the specified warning types +until the end of the file. + Warnings won't prevent the game from running, but you can turn them into errors if you'd like. This way your game won't compile unless you fix all warnings. Head to the ``GDScript`` section of the Project Settings to