Auto type `"` and `()`
@@ -1008,6 +1008,22 @@ fileprivate func parseArgs(_ args: inout [String]) {
return false
}
+ if text == "(" {
+ textView.insertText("(")
+ let range = textView.selectedTextRange
+ textView.insertText(")")
+ textView.selectedTextRange = range
+ return false
+ }
+
+ if text == "\"" {
+ textView.insertText("\"")
+ let range = textView.selectedTextRange
+ textView.insertText("\"")
+ textView.selectedTextRange = range
+ return false
+ }
+
if text == "\n", var currentLine = textView.currentLine {
var spaces = ""
