Page MenuHomePhabricator

D20231.diff
No OneTemporary

D20231.diff

diff --git a/src/markup/syntax/engine/PhutilDefaultSyntaxHighlighterEngine.php b/src/markup/syntax/engine/PhutilDefaultSyntaxHighlighterEngine.php
--- a/src/markup/syntax/engine/PhutilDefaultSyntaxHighlighterEngine.php
+++ b/src/markup/syntax/engine/PhutilDefaultSyntaxHighlighterEngine.php
@@ -73,7 +73,7 @@
->getHighlightFuture($source);
}
- if ($language == 'py') {
+ if ($language == 'py' || $language == 'python') {
return id(new PhutilLexerSyntaxHighlighter())
->setConfig('lexer', new PhutilPythonFragmentLexer())
->setConfig('language', 'py')

File Metadata

Mime Type
text/plain
Expires
Wed, Jan 15, 11:28 AM (12 h, 26 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6994472
Default Alt Text
D20231.diff (599 B)

Event Timeline