I'm creating a YAML editor for a small part of my service, and I'd like to provide some autocomplete, the capabilities of CodeMirror are so far beyond amazing but I wanted to know the possibility of knowing where I am inside the document.
e.g. consider the following YAML
- first_operation: ["blabla", "bla bla bla"]
- "<---How to know that I'm inside 'operations' here if did auto-complete"
- "<----how to know here too that I'm inside 'child' "
Is there away to know if I'm inside the sections above in YAML?