diff options
| author | Richard M. Stallman | 1997-07-25 17:29:29 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1997-07-25 17:29:29 +0000 |
| commit | 5dfa3d353607948bb849482af0fd942d3df43ad2 (patch) | |
| tree | fd0f4db0ae775e831ba242a163b99be551bba94b | |
| parent | e9a5d6f716753293e227c11f63bc22d5af23a979 (diff) | |
| download | emacs-5dfa3d353607948bb849482af0fd942d3df43ad2.tar.gz emacs-5dfa3d353607948bb849482af0fd942d3df43ad2.zip | |
(compilation-error-regexp-alist): Add elt for EPC F90.
compilation-mode-font-lock-keywords: Ensure that each
regexp generated from compilation-error-regexp-alist begins with "^".
| -rw-r--r-- | lisp/progmodes/compile.el | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/lisp/progmodes/compile.el b/lisp/progmodes/compile.el index 61019f56879..1b42f43f751 100644 --- a/lisp/progmodes/compile.el +++ b/lisp/progmodes/compile.el | |||
| @@ -276,6 +276,10 @@ of[ \t]+\"?\\([a-zA-Z]?:?[^\":\n]+\\)\"?:" 3 2) | |||
| 276 | ;; Semantic error at line 528, column 5, file erosacqdb.pc: | 276 | ;; Semantic error at line 528, column 5, file erosacqdb.pc: |
| 277 | ("Semantic error at line \\([0-9]+\\), column \\([0-9]+\\), file \\(.*\\):" | 277 | ("Semantic error at line \\([0-9]+\\), column \\([0-9]+\\), file \\(.*\\):" |
| 278 | 3 1 2) | 278 | 3 1 2) |
| 279 | |||
| 280 | ;; EPC F90 compiler: | ||
| 281 | ;; Error 24 at (2:progran.f90) : syntax error | ||
| 282 | ("Error [0-9]+ at (\\([0-9]*\\):\\([^)\n]+\\))" 2 1) | ||
| 279 | ) | 283 | ) |
| 280 | "Alist that specifies how to match errors in compiler output. | 284 | "Alist that specifies how to match errors in compiler output. |
| 281 | Each elt has the form (REGEXP FILE-IDX LINE-IDX [COLUMN-IDX FILE-FORMAT...]) | 285 | Each elt has the form (REGEXP FILE-IDX LINE-IDX [COLUMN-IDX FILE-FORMAT...]) |
| @@ -448,10 +452,19 @@ write into the compilation buffer, and to put in its mode line.") | |||
| 448 | (nconc | 452 | (nconc |
| 449 | ;; | 453 | ;; |
| 450 | ;; Compiler warning/error lines. | 454 | ;; Compiler warning/error lines. |
| 451 | (mapcar #'(lambda (item) | 455 | (mapcar (function |
| 452 | (list (nth 0 item) | 456 | (lambda (item) |
| 453 | (list (nth 1 item) 'font-lock-warning-face nil t) | 457 | ;; Prepend "^", adjusting FILE-IDX and LINE-IDX accordingly. |
| 454 | (list (nth 2 item) 'font-lock-variable-name-face nil t))) | 458 | (let ((file-idx (nth 1 item)) (line-idx (nth 2 item)) keyword) |
| 459 | (when (numberp line-idx) | ||
| 460 | (setq keyword | ||
| 461 | (cons (list (1+ line-idx) 'font-lock-variable-name-face) | ||
| 462 | keyword))) | ||
| 463 | (when (numberp file-idx) | ||
| 464 | (setq keyword | ||
| 465 | (cons (list (1+ file-idx) 'font-lock-warning-face) | ||
| 466 | keyword))) | ||
| 467 | (cons (concat "^\\(" (nth 0 item) "\\)") keyword)))) | ||
| 455 | compilation-error-regexp-alist) | 468 | compilation-error-regexp-alist) |
| 456 | (list | 469 | (list |
| 457 | ;; | 470 | ;; |