ruby-syntax-methods-before-regexp

ruby-syntax-methods-before-regexp is a variable defined in `ruby-mode.el'.
Its value is

("gsub" "gsub!" "sub" "sub!" "scan" "split" "split!" "index" "match" "assert_match" "Given" "Then" "When")

  • This variable may be risky if used as a file-local variable.

Documentation:
Methods that can take regexp as the first argument.
It will be properly highlighted even when the call omits parens.