2
0
Эх сурвалжийг харах

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

This closes #4593.
Hugo Locurcio 4 жил өмнө
parent
commit
1f8dcbeee7

+ 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,