浏览代码

Fix Sphinx `add_lexer()` deprecation in the GDScript extension (#4594)

This closes #4593.
Hugo Locurcio 4 年之前
父节点
当前提交
1f8dcbeee7
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      _extensions/gdscript.py

+ 1 - 1
_extensions/gdscript.py

@@ -341,7 +341,7 @@ class GDScriptLexer(RegexLexer):
 
 
 def setup(sphinx):
-    sphinx.add_lexer("gdscript", GDScriptLexer())
+    sphinx.add_lexer("gdscript", GDScriptLexer)
 
     return {
         "parallel_read_safe": True,