I rebased my work into three commits: - whitespace only lines - parentheses blocks that end with EOF/are unbalanced - the caret/circumflex behavior if the next line is missing . I only worked on the caret/circumflex behavior as I worked on the same code location. Feel free to drop the caret/circumflex work. The threads above got out-of-sync as I force pushed.