diff options
| author | 2020-10-05 19:03:59 -0700 | |
|---|---|---|
| committer | 2020-10-05 19:03:59 -0700 | |
| commit | ace40ecf463a17ad228541ac9ed9a97df15c624c (patch) | |
| tree | d6ba5f596a445ef7a746512c6942b27ebbc38c40 | |
| parent | Fix conflict for webhook token check in code block detection (diff) | |
Code block: support the "pycon" language specifier
It's used for code copied from the Python REPL.
| -rw-r--r-- | bot/cogs/codeblock/parsing.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/codeblock/parsing.py b/bot/cogs/codeblock/parsing.py index 01c220c61..e67224494 100644 --- a/bot/cogs/codeblock/parsing.py +++ b/bot/cogs/codeblock/parsing.py @@ -12,7 +12,7 @@ from bot.utils import has_lines log = logging.getLogger(__name__) BACKTICK = "`" -PY_LANG_CODES = ("python", "py") # Order is important; "py" is second cause it's a subset. +PY_LANG_CODES = ("python", "pycon", "py") # Order is important; "py" is last cause it's a subset. _TICKS = { BACKTICK, "'", |