# Don't mis-match "sub" at the end of words. a = asub / aslb + bsub / bslb; b = %Q{This is a "string"} c = %w(foo bar baz) d = %!hello! # Don't propertize percent literals inside strings. "(%s, %s)" % [123, 456] # Nor inside comments. x = # "tot %q/to"; = y = 2 / 3 # A "do" after a slash means that slash is not a division, but it doesn't imply # it's a regexp-ender, since it can be a regexp-starter instead! x = toto / foo; if /do bar/ then toto = 1 end # Some Cucumber code: Given /toto/ do print "hello" end