Skip to content

Commit 07234c2

Browse files
hack: monkey patch the built-in lexer mapping
violates the "DO NOT EDIT BY HAND" warning 👍
1 parent 86abd40 commit 07234c2

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gdscript_lexer.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -478,3 +478,7 @@ def innerstring_rules(ttype):
478478
include("numbers"),
479479
],
480480
}
481+
482+
# HACK: monkey patch the built-in lexer mapping
483+
from pygments.lexers._mapping import LEXERS
484+
LEXERS.pop("GDScriptLexer")

0 commit comments

Comments
 (0)