diff options
author | murphy <murphy@rubychan.de> | 2006-04-04 13:23:02 +0000 |
---|---|---|
committer | murphy <murphy@rubychan.de> | 2006-04-04 13:23:02 +0000 |
commit | 132b75e58dba4c93278721d60f177cfbee7d0e46 (patch) | |
tree | d4491961c01b9c9b91e7d3c25fefa4a4b5c5c5de /lib/coderay/scanners/ruby.rb | |
parent | 0d919d07f67166981cea476e1febbc40af2eae9c (diff) | |
download | coderay-132b75e58dba4c93278721d60f177cfbee7d0e46.tar.gz |
Added HTML scanner!
Added test/html/suite.rb and tolkien.in.html test.
Benchmark produces inline line numbers now.
Minor changes to Ruby and C scanners.
Rakefile: unit tests now in -d mode.
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
|