aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar MarkKoz <[email protected]>2020-10-05 19:03:59 -0700
committerGravatar MarkKoz <[email protected]>2020-10-05 19:03:59 -0700
commitace40ecf463a17ad228541ac9ed9a97df15c624c (patch)
treed6ba5f596a445ef7a746512c6942b27ebbc38c40
parentFix 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.
Diffstat (limited to '')
-rw-r--r--bot/cogs/codeblock/parsing.py2
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,
"'",