From 7c653b9bafc2159431c86b628d5279913e7ec74d Mon Sep 17 00:00:00 2001 From: murphy Date: Thu, 22 Jan 2009 14:34:17 +0000 Subject: Fixed a Ruby 1.8 compatibility bug in Groovy Scanner. * Also added jruby19 task (jruby --1.9 mode). --- lib/coderay/scanners/groovy.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/coderay/scanners') diff --git a/lib/coderay/scanners/groovy.rb b/lib/coderay/scanners/groovy.rb index fd1a34b..9486beb 100644 --- a/lib/coderay/scanners/groovy.rb +++ b/lib/coderay/scanners/groovy.rb @@ -201,7 +201,7 @@ module Scanners elsif (state == :string || state == :multiline_string) && (match = scan(/ \\ (?: #{ESCAPE} | #{UNICODE_ESCAPE} ) /mox)) - if string_delimiter[0] == "'" && !(match == "\\\\" || match == "\\'") + if string_delimiter[0] == ?' && !(match == "\\\\" || match == "\\'") kind = :content else kind = :char -- cgit v1.2.1