diff options
Diffstat (limited to 'lib/coderay/scanners/ruby.rb')
-rw-r--r-- | lib/coderay/scanners/ruby.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb index dd92caf..810e1fd 100644 --- a/lib/coderay/scanners/ruby.rb +++ b/lib/coderay/scanners/ruby.rb @@ -272,7 +272,7 @@ module CodeRay module Scanners heredocs ||= [] # create heredocs if empty
heredocs << heredoc
- elsif fancy_allowed and match = scan(/#{FANCY_START}/o)
+ elsif fancy_allowed and match = scan(/#{FANCY_START_SAVE}/o)
type, interpreted = *FancyStringType.fetch(self[1]) do
raise_inspect 'Unknown fancy string: %%%p' % k, tokens
end
@@ -358,6 +358,7 @@ module CodeRay module Scanners end
end
+# }}}
regexp_allowed = regexp_allowed == :set
fancy_allowed = fancy_allowed == :set
@@ -373,7 +374,6 @@ module CodeRay module Scanners state = last_state
last_state = nil
end
-# }}}
end
end
|