Browse Source

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

This closes #4593.
Hugo Locurcio 4 năm trước cách đây
mục cha
commit
1f8dcbeee7
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      _extensions/gdscript.py

+ 1 - 1
_extensions/gdscript.py

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