diff options
author | murphy <murphy@rubychan.de> | 2005-10-22 01:16:34 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2005-10-22 01:16:34 +0000 |
commit | 996de449cd5130ca3f073ad241464359c4d6d4fa (patch) | |
tree | b429e98eb5458c9ec32fded0b8ac820786ae7146 /lib/coderay/scanners/ruby.rb | |
parent | a4052158f89068317e5a374cc553ef95de1a842a (diff) | |
download | coderay-996de449cd5130ca3f073ad241464359c4d6d4fa.tar.gz |
demo/demo_server.rb: Debug mode.
tokens.rb: orig_each alias deleted; using super now.
scanners/ruby.rb: experimental Regexp/Fancy string recognition for "method /.../" cases.
Diffstat (limited to 'lib/coderay/scanners/ruby.rb')
-rw-r--r-- | lib/coderay/scanners/ruby.rb | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/coderay/scanners/ruby.rb b/lib/coderay/scanners/ruby.rb index 1ceb3d5..4cb1e58 100644 --- a/lib/coderay/scanners/ruby.rb +++ b/lib/coderay/scanners/ruby.rb @@ -213,7 +213,8 @@ module CodeRay module Scanners state = DEF_NEW_STATE[match]
end
end
- fancy_allowed = regexp_allowed = REGEXP_ALLOWED[match]
+ ## experimental!
+ fancy_allowed = regexp_allowed = :set if REGEXP_ALLOWED[match] or check(/\s+(?:%\S|\/\S)/)
elsif match = scan(/ ['"] /mx)
tokens << [:open, :string]
|