瀏覽代碼

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

This reverts commit 7c71a2898b90202b545aad14cbae6512414bb451.

It broke the build.
Rémi Verschelde 4 年之前
父節點
當前提交
75aa2ce514
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      _extensions/gdscript.py

+ 1 - 1
_extensions/gdscript.py

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