diff --git a/lib/coderay/scanners/ruby/patterns.rb b/lib/coderay/scanners/ruby/patterns.rb index a52198ef..de49fefd 100644 --- a/lib/coderay/scanners/ruby/patterns.rb +++ b/lib/coderay/scanners/ruby/patterns.rb @@ -10,7 +10,7 @@ module Ruby::Patterns # :nodoc: all BEGIN break do next rescue then when END case else for retry while alias class elsif if not return - undef yield + undef yield require ] # See http://murfy.de/ruby-constants. @@ -92,17 +92,17 @@ module Ruby::Patterns # :nodoc: all | x[0-9A-Fa-f]{1,2} | . /mx - + CONTROL_META_ESCAPE = / (?: M-|C-|c ) (?: \\ (?: M-|C-|c ) )* (?: [^\\] | \\ #{SIMPLE_ESCAPE} )? /mox - + ESCAPE = / #{CONTROL_META_ESCAPE} | #{SIMPLE_ESCAPE} /mox - + CHARACTER = / \? (?: @@ -134,7 +134,7 @@ module Ruby::Patterns # :nodoc: all .*? (?: \Z | (?=^\#CODE) ) /mx - + RUBYDOC_OR_DATA = / #{RUBYDOC} | #{DATA} /xo # Checks for a valid value to follow. This enables @@ -156,7 +156,7 @@ module Ruby::Patterns # :nodoc: all while elsif if not return yield ]) - + FANCY_STRING_START = / % ( [QqrsWwx] | (?![a-zA-Z0-9]) ) ([^a-zA-Z0-9]) /x FANCY_STRING_KIND = Hash.new(:string).merge({ 'r' => :regexp, @@ -168,8 +168,9 @@ module Ruby::Patterns # :nodoc: all 's' => false, 'w' => false, }) - + end - + end end +