                 return add(char: char)
             }
         case ":":
+            _ = checkInCase()
             trimWithIndent()
             retString += ": "
             return string.nextNonSpaceIndex(string.index(after: strIndex))

                indent = Indent()
            }
            if char == "}" {
                trimWithIndent() // MARK: change to newline check
                if addIndentBack {
                    indent.count += 1
                }

        }
    }

    func checkInCase() -> Bool {
        if indent.inCase {
            indent.inCase = false
            indent.leading -= 1
            indent.count += 1
            return true
        }
        return false
    }

    func checkLine(_ char: Character, checkLast: Bool = true) -> String.Index {
        trim()
        newlineIndex = retString.endIndex
