Page MenuHomePhabricator

D20231.id.diff
No OneTemporary

D20231.id.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
Tue, Mar 25, 7:44 AM (1 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7485614
Default Alt Text
D20231.id.diff (599 B)

Event Timeline