vendor/bundle/ruby/3.0.0/gems/brakeman-5.2.2/bundle/ruby/2.7.0/gems/sexp_processor-4.16.0/lib/sexp_matcher.rb
##
# Parses a balanced command. A command is denoted by square
# brackets and must conform to a whitelisted set of allowed
# commands (see +ALLOWED+).
Parses a balanced command. A command is denoted by square
brackets and must conform to a whitelisted set of allowed
commands .
Parses a balanced command . A command is denoted by square brackets and must conform to a whitelisted set of allowed commands .
def parse_cmd
        args = []
        args << parse_sexp while peek_token && peek_token != "]"
        next_token 
        cmd = args.shift
        args = Sexp.q(*args)
        raise SyntaxError, "bad cmd: %p" % [cmd] unless ALLOWED.include? cmd
        result = Sexp.send cmd, *args
        result
      end
def parse_cmd args = [ ] args << parse_sexp while peek_token && peek_token != "]" next_token cmd = args . shift args = Sexp . q ( * args ) raise SyntaxError , "bad cmd: %p" % [ cmd ] unless ALLOWED . include? cmd result = Sexp . send cmd , * args result end
Parses a balanced command.
Parses a balanced command .
# pop off "]"