summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Rakefile4
-rw-r--r--lib/coderay/scanners/groovy.rb2
2 files changed, 5 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 780b5d4..0537521 100644
--- a/Rakefile
+++ b/Rakefile
@@ -45,6 +45,10 @@ task 'jruby' do
RUBY.replace 'jruby'
end
+task 'jruby19' do
+ RUBY.replace 'jruby --1.9'
+end
+
task 'rubinius' do
RUBY.replace 'rbx'
end
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