replacing [Char] with String when inserting inferred type.

Johannes Krause <cjay>
This commit is contained in:
Kazu Yamamoto 2010-05-12 14:55:01 +09:00
parent cf16c62c3a
commit 2f1ab4e71d

View File

@ -76,14 +76,15 @@
(cond
((string-match "Inferred type: \\([^:]+ :: \\)\\(forall [^.]+\\. \\)?\\([^\0]*\\)" data)
(beginning-of-line)
(insert (match-string 1 data) (match-string 3 data) "\n"))
(insert (match-string 1 data)
(replace-regexp-in-string "\\[Char\\]" "String" (match-string 3 data))
"\n"))
((string-match "Not in scope: `\\([^']+\\)'" data)
(save-match-data
(unless (re-search-forward "^$" nil t)
(goto-char (point-max))
(insert "\n")))
(insert "\n" (match-string 1 data) " = undefined\n"))))))
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;