aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes
diff options
context:
space:
mode:
authorRichard M. Stallman <[email protected]>2002-04-06 15:57:47 +0000
committerRichard M. Stallman <[email protected]>2002-04-06 15:57:47 +0000
commitfb49f36a2bbca351e893d24ffb951f5f133c86ba (patch)
treeef5fc84c5234edead3a8897fdd403c65925a8015 /lisp/progmodes
parent232c8d4c1027dfc587012f33ed818ecd1f35f2b9 (diff)
(compilation-error-regexp-alist):
New alternatives for FILE:LINE.COL and for ranges of columns and lines.
Diffstat (limited to 'lisp/progmodes')
-rw-r--r--lisp/progmodes/compile.el27
1 files changed, 27 insertions, 0 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el
index f9296235ad..c1f8b9b345 100644
--- a/lisp/progmodes/compile.el
+++ b/lisp/progmodes/compile.el
@@ -270,6 +270,33 @@ or when it is used with \\[next-error] or \\[compile-goto-error].")
\\([a-zA-Z]?:?[^:( \t\n]*[^:( \t\n0-9][^:( \t\n]*\\)[:(][ \t]*\\([0-9]+\\)\
\\([) \t]\\|:\\(\\([0-9]+:\\)\\|[0-9]*[^:0-9]\\)\\)" 2 3 6)
+ ;; GNU utilities with precise locations (line and columns),
+ ;; possibly ranges:
+ ;; foo.c:8.23-9.1: error message
+ ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\
+\\([0-9]+\\)\\.\\([0-9]+\\)\
+-\\([0-9]+\\)\\.\\([0-9]+\\)\
+:" 1 2 3) ;; When ending points are supported, add line = 4 and col = 5.
+ ;; foo.c:8.23-45: error message
+ ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\
+\\([0-9]+\\)\\.\\([0-9]+\\)\
+-\\([0-9]+\\)\
+:" 1 2 3) ;; When ending points are supported, add line = 2 and col = 4.
+ ;; foo.c:8-45.3: error message
+ ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\
+\\([0-9]+\\)\
+-\\([0-9]+\\)\\.\\([0-9]+\\)\
+:" 1 2 nil) ;; When ending points are supported, add line = 2 and col = 4.
+ ;; foo.c:8.23: error message
+ ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\
+\\([0-9]+\\)\\.\\([0-9]+\\)\
+:" 1 2 3)
+ ;; foo.c:8-23: error message
+ ("\\([a-zA-Z][-a-zA-Z._0-9]+: ?\\)\
+\\([0-9]+\\)\
+-\\([0-9]+\\)\
+:" 1 2 nil);; When ending points are supported, add line = 3.
+
;; Microsoft C/C++:
;; keyboard.c(537) : warning C4005: 'min' : macro redefinition
;; d:\tmp\test.c(23) : error C2143: syntax error : missing ';' before 'if'