diff options
| author | Roland McGrath | 1996-01-06 21:20:51 +0000 |
|---|---|---|
| committer | Roland McGrath | 1996-01-06 21:20:51 +0000 |
| commit | 3e8258e7f5de89fff0cd902f3786a57ce93a7a02 (patch) | |
| tree | 1ee4b2e899afcd992eecd159f0f231f41938b589 | |
| parent | 369d3cdc63858889059cd8172a7374df79ef9883 (diff) | |
| download | emacs-3e8258e7f5de89fff0cd902f3786a57ce93a7a02.tar.gz emacs-3e8258e7f5de89fff0cd902f3786a57ce93a7a02.zip | |
(compilation-error-regexp-alist, grep-regexp-alist
compilation-mode-font-lock-keywords): Allow leading "[a-zA-Z]:" in file
name regexps, for DOS drive letters.
| -rw-r--r-- | lisp/progmodes/compile.el | 20 |
1 files changed, 11 insertions, 9 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 40957a9b34e..83983d58c87 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -115,25 +115,26 @@ or when it is used with \\[next-error] or \\[compile-goto-error].") | |||
| 115 | ;; paren, because otherwise this matches just about anything | 115 | ;; paren, because otherwise this matches just about anything |
| 116 | ;; containing a number with spaces around it. | 116 | ;; containing a number with spaces around it. |
| 117 | ("\n\ | 117 | ("\n\ |
| 118 | \\([^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\)\\([) \t]\\|\ | 118 | \\([a-zA-Z]?:?[^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\)\\([) \t]\\|\ |
| 119 | :\\([^0-9\n]\\|\\([0-9]+:\\)\\)\\)" 1 2 5) | 119 | :\\([^0-9\n]\\|\\([0-9]+:\\)\\)\\)" 1 2 5) |
| 120 | 120 | ||
| 121 | ;; Borland C++: | 121 | ;; Borland C++: |
| 122 | ;; Error ping.c 15: Unable to open include file 'sys/types.h' | 122 | ;; Error ping.c 15: Unable to open include file 'sys/types.h' |
| 123 | ;; Warning ping.c 68: Call to function 'func' with no prototype | 123 | ;; Warning ping.c 68: Call to function 'func' with no prototype |
| 124 | ("\n\\(Error\\|Warning\\) \\([^:( \t\n]+\\)\ | 124 | ("\n\\(Error\\|Warning\\) \\([a-zA-Z]?:?[^:( \t\n]+\\)\ |
| 125 | \\([0-9]+\\)\\([) \t]\\|:[^0-9\n]\\)" 2 3) | 125 | \\([0-9]+\\)\\([) \t]\\|:[^0-9\n]\\)" 2 3) |
| 126 | 126 | ||
| 127 | ;; 4.3BSD lint pass 2 | 127 | ;; 4.3BSD lint pass 2 |
| 128 | ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) | 128 | ;; strcmp: variable # of args. llib-lc(359) :: /usr/src/foo/foo.c(8) |
| 129 | ("[ \t:]\\([^:( \t\n]+\\)[:(](+[ \t]*\\([0-9]+\\))[:) \t]*$" 1 2) | 129 | ("[ \t:]\\([a-zA-Z]?:?[^:( \t\n]+\\)[:(](+[ \t]*\\([0-9]+\\))[:) \t]*$" |
| 130 | 1 2) | ||
| 130 | 131 | ||
| 131 | ;; 4.3BSD lint pass 3 | 132 | ;; 4.3BSD lint pass 3 |
| 132 | ;; bloofle defined( /users/wolfgang/foo.c(4) ), but never used | 133 | ;; bloofle defined( /users/wolfgang/foo.c(4) ), but never used |
| 133 | ;; This used to be | 134 | ;; This used to be |
| 134 | ;; ("[ \t(]+\\([^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]+" 1 2) | 135 | ;; ("[ \t(]+\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]+" 1 2) |
| 135 | ;; which is regexp Impressionism - it matches almost anything! | 136 | ;; which is regexp Impressionism - it matches almost anything! |
| 136 | ("([ \t]*\\([^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\))" 1 2) | 137 | ("([ \t]*\\([a-zA-Z]?:?[^:( \t\n]+\\)[:(][ \t]*\\([0-9]+\\))" 1 2) |
| 137 | 138 | ||
| 138 | ;; MIPS lint pass<n>; looks good for SunPro lint also | 139 | ;; MIPS lint pass<n>; looks good for SunPro lint also |
| 139 | ;; TrimMask (255) in solomon.c may be indistinguishable from TrimMasks (93) in solomon.c due to truncation | 140 | ;; TrimMask (255) in solomon.c may be indistinguishable from TrimMasks (93) in solomon.c due to truncation |
| @@ -153,7 +154,7 @@ or when it is used with \\[next-error] or \\[compile-goto-error].") | |||
| 153 | ;; error on line 19 of fplot.f: spelling error? | 154 | ;; error on line 19 of fplot.f: spelling error? |
| 154 | ;; warning on line 17 of fplot.f: data type is undefined for variable d | 155 | ;; warning on line 17 of fplot.f: data type is undefined for variable d |
| 155 | ("\\(\n\\|on \\)[Ll]ine[ \t]+\\([0-9]+\\)[ \t]+\ | 156 | ("\\(\n\\|on \\)[Ll]ine[ \t]+\\([0-9]+\\)[ \t]+\ |
| 156 | of[ \t]+\"?\\([^\":\n]+\\)\"?:" 3 2) | 157 | of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2) |
| 157 | 158 | ||
| 158 | ;; Apollo cc, 4.3BSD fc: | 159 | ;; Apollo cc, 4.3BSD fc: |
| 159 | ;; "foo.f", line 3: Error: syntax error near end of statement | 160 | ;; "foo.f", line 3: Error: syntax error near end of statement |
| @@ -187,7 +188,7 @@ of[ \t]+\"?\\([^\":\n]+\\)\"?:" 3 2) | |||
| 187 | ("\n[EW], \\([^(\n]*\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)" 1 2 3) | 188 | ("\n[EW], \\([^(\n]*\\)(\\([0-9]+\\),[ \t]*\\([0-9]+\\)" 1 2 3) |
| 188 | 189 | ||
| 189 | ;; GNU messages with program name and optional column number. | 190 | ;; GNU messages with program name and optional column number. |
| 190 | ("\n[^0-9 \n\t:]+:[ \t]*\\([^ \n\t:]+\\):\ | 191 | ("\n[a-zA-Z]?:?[^0-9 \n\t:]+:[ \t]*\\([^ \n\t:]+\\):\ |
| 191 | \\([0-9]+\\):\\(\\([0-9]+\\)[: \t]\\)?" 1 2 4) | 192 | \\([0-9]+\\):\\(\\([0-9]+\\)[: \t]\\)?" 1 2 4) |
| 192 | 193 | ||
| 193 | ;; Cray C compiler error messages | 194 | ;; Cray C compiler error messages |
| @@ -221,7 +222,7 @@ Otherwise, M-x compile just uses the value of `compile-command'.") | |||
| 221 | Otherwise, it saves all modified buffers without asking.") | 222 | Otherwise, it saves all modified buffers without asking.") |
| 222 | 223 | ||
| 223 | (defvar grep-regexp-alist | 224 | (defvar grep-regexp-alist |
| 224 | '(("^\\([^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)) | 225 | '(("^\\([a-zA-Z]?:?[^:( \t\n]+\\)[:( \t]+\\([0-9]+\\)[:) \t]" 1 2)) |
| 225 | "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") | 226 | "Regexp used to match grep hits. See `compilation-error-regexp-alist'.") |
| 226 | 227 | ||
| 227 | (defvar grep-command "grep -n " | 228 | (defvar grep-command "grep -n " |
| @@ -279,7 +280,8 @@ write into the compilation buffer, and to put in its mode line.") | |||
| 279 | 280 | ||
| 280 | (defvar compilation-mode-font-lock-keywords | 281 | (defvar compilation-mode-font-lock-keywords |
| 281 | ;; This regexp needs a bit of rewriting. What is the third grouping for? | 282 | ;; This regexp needs a bit of rewriting. What is the third grouping for? |
| 282 | '(("^\\([^ \n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" 1 font-lock-function-name-face)) | 283 | '(("^\\([a-zA-Z]?:?[^ \n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" |
| 284 | 1 font-lock-function-name-face)) | ||
| 283 | ;;; ("^\\([^\n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" 0 font-lock-keyword-face keep) | 285 | ;;; ("^\\([^\n:]*:\\([0-9]+:\\)+\\)\\(.*\\)$" 0 font-lock-keyword-face keep) |
| 284 | "Additional expressions to highlight in Compilation mode.") | 286 | "Additional expressions to highlight in Compilation mode.") |
| 285 | 287 | ||