Explorar el Código

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

This closes #4593.
Hugo Locurcio hace 4 años
padre
commit
1f8dcbeee7
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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,