class ElasticAPM::Sql::Tokenizer

def next_token(char)

rubocop:disable Metrics/CyclomaticComplexity
def next_token(char)
  case char
  when '_'   then scan_keyword_or_identifier(possible_keyword: false)
  when '.'   then PERIOD
  when '$'   then scan_dollar_sign
  when '`'   then scan_quoted_indentifier('`')
  when '"'   then scan_quoted_indentifier('"')
  when '['   then scan_quoted_indentifier(']')
  when '('   then LPAREN
  when ')'   then RPAREN
  when '/'   then scan_bracketed_comment
  when '-'   then scan_simple_comment
  when "'"   then scan_string_literal
  when ALPHA then scan_keyword_or_identifier(possible_keyword: true)
  when DIGIT then scan_numeric_literal
  else            OTHER
  end
end