浏览代码

Merge pull request #4864 from Calinou/gdscript-seealso-reference

Add a "see also" link to the GDScript grammar in the GDScript section
Rémi Verschelde 4 年之前
父节点
当前提交
ced232bd9c
共有 2 个文件被更改,包括 6 次插入1 次删除
  1. 1 1
      tutorials/scripting/gdscript/gdscript_basics.rst
  2. 5 0
      tutorials/scripting/gdscript/index.rst

+ 1 - 1
tutorials/scripting/gdscript/gdscript_basics.rst

@@ -1318,7 +1318,7 @@ the function name with the attribute operator::
         return super.overriding() # This calls the method as defined in the base class.
         return super.overriding() # This calls the method as defined in the base class.
 
 
 
 
-Class Constructor
+Class constructor
 ^^^^^^^^^^^^^^^^^
 ^^^^^^^^^^^^^^^^^
 
 
 The class constructor, called on class instantiation, is named ``_init``. If you
 The class constructor, called on class instantiation, is named ``_init``. If you

+ 5 - 0
tutorials/scripting/gdscript/index.rst

@@ -12,3 +12,8 @@ GDScript
    static_typing
    static_typing
    warning_system
    warning_system
    gdscript_format_string
    gdscript_format_string
+
+.. seealso::
+
+    See :ref:`doc_gdscript_grammar` if you are interested in writing a third-party
+    tool that interacts with GDScript, such as a linter or formatter.