From d0e95e2cb7e1d7336a850178bb27ab98bc5b4ef0 Mon Sep 17 00:00:00 2001 From: murphy Date: Tue, 14 Apr 2009 01:41:13 +0000 Subject: Fixed generate:scanner task; it now also sets the file_extension. For example, to create a stub for the Python Scanner, I can use: rake generate:scanner NAME=python BASE=c EXT=py --- lib/coderay/scanners/json.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/coderay/scanners/json.rb') diff --git a/lib/coderay/scanners/json.rb b/lib/coderay/scanners/json.rb index eb67347..d899e05 100644 --- a/lib/coderay/scanners/json.rb +++ b/lib/coderay/scanners/json.rb @@ -6,6 +6,7 @@ module Scanners include Streamable register_for :json + file_extension 'json' CONSTANTS = %w( true false null ) IDENT_KIND = WordList.new(:key).add(CONSTANTS, :reserved) -- cgit v1.2.1