summaryrefslogtreecommitdiff
path: root/bin/coderay
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2009-01-01 13:57:08 +0000
committermurphy <murphy@rubychan.de>2009-01-01 13:57:08 +0000
commitde0fc10606a67c95c27bcadd2f8daaf6820ef1ea (patch)
tree0321b517e19386aa80df646344a65fe38bf83054 /bin/coderay
parent71c86e1e632865c5dceb51161753c529c36e191d (diff)
downloadcoderay-de0fc10606a67c95c27bcadd2f8daaf6820ef1ea.tar.gz
Made plugin ids case-insensitive.
With this change, upper case lang names are allowed like 'C'.
Diffstat (limited to 'bin/coderay')
-rw-r--r--bin/coderay6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/coderay b/bin/coderay
index 5247761..61841b7 100644
--- a/bin/coderay
+++ b/bin/coderay
@@ -27,11 +27,11 @@ Example:
if first
if first[/-(\w+)/] == first
- lang = $1.to_sym
+ lang = $1
input = $stdin.read
tokens = :scan
elsif first == '-'
- lang = $1.to_sym
+ lang = $1
input = $stdin.read
tokens = :scan
else
@@ -46,7 +46,7 @@ Example:
if second
if second[/-(\w+)/] == second
- format = $1.to_sym
+ format = $1
else
raise 'Invalid format (must be -xxx).'
end