summaryrefslogtreecommitdiff
path: root/test/scanners/ruby/strange.in.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/scanners/ruby/strange.in.rb')
-rw-r--r--test/scanners/ruby/strange.in.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/scanners/ruby/strange.in.rb b/test/scanners/ruby/strange.in.rb
index 8369aaa..bf57322 100644
--- a/test/scanners/ruby/strange.in.rb
+++ b/test/scanners/ruby/strange.in.rb
@@ -51,6 +51,13 @@ puts 30.send(:/, 5) # prints 6
% abc # FIXME
+# And here some special string cases
+foo = % blah # comment here to ensure whitespace
+foo(% blah )
+foo << % blah # stupid but has to work
+foo = % blah + % blub # wicked
+foo = %q wicked # works too
+
%s#ruby allows strange#{constructs}
%s#ruby allows strange#$constructs
%s#ruby allows strange#@@constructs