Page MenuHomePhabricator

Allow .rs source code files to be parsed by Rust
Closed, DuplicatePublic

Description

Currently, .rs files, the standard extension for Rust isn't highlighted.

Yet, Pygments supports them.

If we map rs to rust in src/markup/syntax/highlighter/PhutilPygmentsSyntaxHighlighter.php, we get Rust support:

pasted_file (639×1 px, 40 KB)