summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-x[-rw-r--r--]docs/generate.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/generate.py b/docs/generate.py
index 4842dc6e..0ceeb58d 100644..100755
--- a/docs/generate.py
+++ b/docs/generate.py
@@ -56,7 +56,7 @@ def generate_lexer_docs():
classname,
cls.__doc__,
', '.join(data[2]) or 'None',
- ', '.join(data[3]).replace('*', '\\*') or 'None',
+ ', '.join(data[3]).replace('*', '\\*').replace('_', '\\') or 'None',
', '.join(data[4]) or 'None'))
if module not in moduledocstrings:
moduledocstrings[module] = mod.__doc__