diff options
author | murphy <murphy@rubychan.de> | 2009-04-14 01:41:13 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2009-04-14 01:41:13 +0000 |
commit | d0e95e2cb7e1d7336a850178bb27ab98bc5b4ef0 (patch) | |
tree | 2ddd8d47635cb2fd3606f271090d29deba4d051b /lib/coderay/scanners/json.rb | |
parent | d6d19bb78824977a2a95751e7c6aeaa5996ea807 (diff) | |
download | coderay-d0e95e2cb7e1d7336a850178bb27ab98bc5b4ef0.tar.gz |
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
Diffstat (limited to 'lib/coderay/scanners/json.rb')
-rw-r--r-- | lib/coderay/scanners/json.rb | 1 |
1 files changed, 1 insertions, 0 deletions
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) |