Re:GitHub now supports TOML syntax highlighting
by drivebyacct2 on Monday February 25, 2013 @12:25AM
(#5277448)
It'd be nice if they'd add Rust to the list.
[ Parent
| on HN ]
Re:GitHub now supports TOML syntax highlighting
by epidemian on Monday February 25, 2013 @02:05AM
(#5277711)
The good news is that anyone can do it :D
Check out https://github.com/github/linguist. It's the library GH uses to detect and highlight languages; and _many_ people external from GH have contributed to it. It's just a matter of someone adding a lexer for Rust and submitting a pull request :D
Re:GitHub now supports TOML syntax highlighting
by steveklabnik on Monday February 25, 2013 @02:22AM
(#5277761)
I _almost_ added support to linguist once, but something stopped me. I can't quite remember what it was... I _think_ it was that only edge pygments supported Rust.
Re:GitHub now supports TOML syntax highlighting
by chr1 on Monday February 25, 2013 @04:30AM
(#5278054)
Writing syntax highlighter for TOML takes ~10mins. Rust syntax isn't so simple.
Re:GitHub now supports TOML syntax highlighting
by mh- on Monday February 25, 2013 @12:31AM
(#5277472)
there's probably more TOML than Rust on GitHub already, though
Re:GitHub now supports TOML syntax highlighting
by drivebyacct2 on Monday February 25, 2013 @12:35AM
(#5277484)
I highly doubt that. At the very least: Servo.
Re:GitHub now supports TOML syntax highlighting
by ben0x539 on Monday February 25, 2013 @12:39AM
(#5277493)
Also: rustc
Re:GitHub now supports TOML syntax highlighting
by drivebyacct2 on Monday February 25, 2013 @12:44AM
(#5277509)
And core/std libs.