From e127b7d57b06554e708752bbbc2a85e833633c26 Mon Sep 17 00:00:00 2001 From: murphy Date: Mon, 7 Jan 2008 14:42:47 +0000 Subject: Lib: - Encoder: removed a warning - Encoders::HTML: don't shadow outer variable - Plugin: move require_plugin into class namespace - Ruby Scanner: - "alias" keyword recognition - better regexp/division distinction - recognize ~, !, !=, and !~ as method names (partly Ruby 1.9 only) - reordered states for speed Tests: - updated coderay-suite to use gem instead of require_gem - general improvements (more colors!, new parameter: new, new syntax lang.test for only and new) - fixed ruby suite - adjusted a lot of Ruby tests (alias uses methods now) - new tests: ruby/operators, ruby/regexp Samples: - fixed/updated ('bout time) Rake tasks: - updated to use new rubygems API --- test/scanners/ruby/regexp.in.rb | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 test/scanners/ruby/regexp.in.rb (limited to 'test/scanners/ruby/regexp.in.rb') diff --git a/test/scanners/ruby/regexp.in.rb b/test/scanners/ruby/regexp.in.rb new file mode 100644 index 0000000..956e6b8 --- /dev/null +++ b/test/scanners/ruby/regexp.in.rb @@ -0,0 +1,5 @@ +# Regexp or division? +some_string.to_i /\s+/ +some_string.split / +/ this is a regexp after a division / +some_string.split / + / this one, too / +some_string.split /- / # and this one is a regexp without division \ No newline at end of file -- cgit v1.2.1