Commit d9ac1a1e authored by Stefan Monnier's avatar Stefan Monnier
Browse files

* lisp/progmodes/compile.el: Adjust regexp for OCaml warnings.

(compilation-error-regexp-alist-alist): OCaml warnings (can?) have a number.

Fixes: debbugs:9749
parent 0c325082
2011-11-09 Stefan Monnier <monnier@iro.umontreal.ca>
* progmodes/compile.el (compilation-error-regexp-alist-alist):
Adjust regexp for OCaml warnings.
* electric.el (electric-pair-post-self-insert-function): Let user
turn it off buffer-locally (bug#9932).
......
......@@ -157,7 +157,7 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2 nil (1))
(python-tracebacks-and-caml
"^[ \t]*File \\(\"?\\)\\([^,\" \n\t<>]+\\)\\1, lines? \\([0-9]+\\)-?\\([0-9]+\\)?\\(?:$\\|,\
\\(?: characters? \\([0-9]+\\)-?\\([0-9]+\\)?:\\)?\\([ \n]Warning:\\)?\\)"
\\(?: characters? \\([0-9]+\\)-?\\([0-9]+\\)?:\\)?\\([ \n]Warning\\(?: [0-9]+\\)?:\\)?\\)"
2 (3 . 4) (5 . 6) (7))
(comma
......
......@@ -71,7 +71,7 @@
;; caml
("File \"foobar.ml\", lines 5-8, characters 20-155: blah blah"
1 (19 . 155) (5 . 8) "foobar.ml")
("File \"F:\\ocaml\\sorting.ml\", line 65, characters 2-145:"
("File \"F:\\ocaml\\sorting.ml\", line 65, characters 2-145:\nWarning 26: unused variable equ."
1 (1 . 145) 65 "F:\\ocaml\\sorting.ml")
("File \"/usr/share/gdesklets/display/TargetGauge.py\", line 41, in add_children"
1 nil 41 "/usr/share/gdesklets/display/TargetGauge.py")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment