[racket] Anyone familiar with mercurial? Add syntax coloring to github?

From: Greg Hendershott (greghendershott at gmail.com)
Date: Sun Aug 12 18:36:20 EDT 2012

So I followed up on this.


Add RacketLexer.

Previously Racket files were handled by SchemeLexer. Instead, use a
proper RacketLexer, which handles Racket more appropriately:

 1. Treat square brackets like parentheses.
 2. Expanded list of keywords.
 3. Different file extensions, MIME types, etc.
 4. Handle #:keyword arguments.
 5. Handle more number literals (e.g. #xFF, #o777, 2e2, #e232, etc.).
 6. Handle #| ... |# multiline comments (although NOT nested).

Before I give them a pull request, I wanted to give folks here a
chance to critique it (or even flatly veto it).

Again, the goal is that eventually this would flow through to GitHub,
and improve the readability of Racket repos and gists.

On Thu, Jun 2, 2011 at 12:49 PM, John Clements
<clements at brinckerhoff.org> wrote:
> On Jun 2, 2011, at 6:43 AM, Eli Barzilay wrote:
>> An hour ago, Vincent St-Amour wrote:
>>> At Thu, 2 Jun 2011 06:30:00 -0400,
>>> Greg Hendershott wrote:
>>>>  aliases = ['scheme', 'scm', 'ss', 'racket', 'rkt']
>>> rktl would probably fit in there too.
>> (This is just in case someone takes it on more seriously: IIRC,
>> another issue with pygments was either ignoring square brackets, or
>> highlighting them as errors.)
> Gosh, sounds complicated.  I don't think any of us could handle that!
> John (goad, goad) Clements
> _________________________________________________
>   For list-related administrative tasks:
>   http://lists.racket-lang.org/listinfo/users

Posted on the users mailing list.