summaryrefslogtreecommitdiff
path: root/lib/coderay/for_redcloth.rb
diff options
context:
space:
mode:
authormurphy <murphy@rubychan.de>2011-06-25 18:23:07 +0000
committermurphy <murphy@rubychan.de>2011-06-25 18:23:07 +0000
commit498df2b7654c210c8f47e2757efc33cd94689b57 (patch)
treebda6e10d3eadbf22f1a1a1a2d4e8d0cf7844a3b0 /lib/coderay/for_redcloth.rb
parentd6fe4e777a4f543c8828dbf77e955ab38e6c2803 (diff)
downloadcoderay-498df2b7654c210c8f47e2757efc33cd94689b57.tar.gz
coderay list subcommand and cleanups/fixes in Plugin helper (issue #45)
Diffstat (limited to 'lib/coderay/for_redcloth.rb')
-rw-r--r--lib/coderay/for_redcloth.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/coderay/for_redcloth.rb b/lib/coderay/for_redcloth.rb
index 1946f8e..f9df32b 100644
--- a/lib/coderay/for_redcloth.rb
+++ b/lib/coderay/for_redcloth.rb
@@ -45,7 +45,7 @@ module CodeRay
if !opts[:lang] && RedCloth::VERSION.to_s >= '4.2.0'
# simulating pre-4.2 behavior
if opts[:text].sub!(/\A\[(\w+)\]/, '')
- if CodeRay::Scanners[$1].plugin_id == :text
+ if CodeRay::Scanners[$1].lang == :text
opts[:text] = $& + opts[:text]
else
opts[:lang] = $1