To be fair, it's the same issue with nested loops in python (one good reason to avoid them and use functions instead), and this is easily solved in VS Code or Atom with one of many plugins which will show which indentation line you are on.
Says me, the YAML apologist...