class Prism::Translation::Parser::Lexer

def percent_array_leading_whitespace(string)

For %-arrays whitespace, the parser gem only considers whitespace before the newline.
def percent_array_leading_whitespace(string)
  return 1 if string.start_with?("\n")
  leading_whitespace = 0
  string.each_char do |c|
    break if c == "\n"
    leading_whitespace += 1
  end
  leading_whitespace
end