Add a test for empty stream
Start refactoring the indent regexes.