Use new Racket lexer from pygments.rb 0.3.3 #325

Merged
merged 2 commits into from Jan 2, 2013
View
3 lib/linguist/languages.yml
@@ -1032,10 +1032,11 @@ RHTML:
Racket:
type: programming
- lexer: Scheme
+ lexer: Racket
color: "#ae17ff"
primary_extension: .rkt
extensions:
+ - .rkt
@michaelficarra
michaelficarra Jan 2, 2013

Was this necessary if the primary_extension is .rkt?

@josh
josh Jan 2, 2013

Yeah, no need to add it again

@tnm
tnm Jan 2, 2013

Looking at it now, we do this (copy the primary extension under extensions) in a bunch of places. Probably worth cleaning it up at some point.

@greghendershott
greghendershott Jan 2, 2013
- .rktd
- .rktl
View
2 test/test_language.rb
@@ -45,7 +45,7 @@ def test_lexer
assert_equal Lexer['S'], Language['R'].lexer
assert_equal Lexer['Scheme'], Language['Emacs Lisp'].lexer
assert_equal Lexer['Scheme'], Language['Nu'].lexer
- assert_equal Lexer['Scheme'], Language['Racket'].lexer
+ assert_equal Lexer['Racket'], Language['Racket'].lexer
assert_equal Lexer['Scheme'], Language['Scheme'].lexer
assert_equal Lexer['Standard ML'], Language['Standard ML'].lexer
assert_equal Lexer['TeX'], Language['TeX'].lexer