class SyntaxTree::RegexpLiteral

def ambiguous?(q)

operator, e.g. foo / bar/ or foo /=bar/
we want to use braces because otherwise we could end up with an ambiguous
or an =, and we're contained within a command or command_call node, then
If the first part of this regex is plain string content, we have a space
def ambiguous?(q)
  return false if parts.empty?
  part = parts.first
  part.is_a?(TStringContent) && part.value.start_with?(" ", "=") &&
    q.parents.any? { |node| node.is_a?(Command) || node.is_a?(CommandCall) }
end