Get indent level for the given offset, relative to the previous line.
Parse the given text.
See Implementation