in lib/elastic_apm/sql/tokenizer.rb [196:213]
def scan_bracketed_comment
nesting = 1
while (char = next_char)
case char
when '/'
next unless peek_char == '*'
next_char
nesting += 1
when '*'
next unless peek_char == '/'
next_char
nesting -= 1
return COMMENT if nesting == 0
end
end
end