diff options
| author | Glenn Morris | 2007-04-23 01:21:11 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-04-23 01:21:11 +0000 |
| commit | efaa82ff8d18f8ca58105abb639cb57ca626ebe9 (patch) | |
| tree | b2dd50c409319bd7e0bb1937e54643185682bc50 | |
| parent | a5d0382b4e6e9db656350248d8d7ee1fb46c405d (diff) | |
| download | emacs-efaa82ff8d18f8ca58105abb639cb57ca626ebe9.tar.gz emacs-efaa82ff8d18f8ca58105abb639cb57ca626ebe9.zip | |
(magic-mode-alist): Allow for carriage-returns in html-mode entry.
| -rw-r--r-- | lisp/files.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/files.el b/lisp/files.el index 9f3a73439a9..8aa06ddc877 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2123,12 +2123,12 @@ associated with that interpreter in `interpreter-mode-alist'.") | |||
| 2123 | `((image-type-auto-detected-p . image-mode) | 2123 | `((image-type-auto-detected-p . image-mode) |
| 2124 | ;; The < comes before the groups (but the first) to reduce backtracking. | 2124 | ;; The < comes before the groups (but the first) to reduce backtracking. |
| 2125 | ;; TODO: UTF-16 <?xml may be preceded by a BOM 0xff 0xfe or 0xfe 0xff. | 2125 | ;; TODO: UTF-16 <?xml may be preceded by a BOM 0xff 0xfe or 0xfe 0xff. |
| 2126 | ;; We use [ \t\n] instead of `\\s ' to make regex overflow less likely. | 2126 | ;; We use [ \t\r\n] instead of `\\s ' to make regex overflow less likely. |
| 2127 | (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)") | 2127 | (,(let* ((incomment-re "\\(?:[^-]\\|-[^-]\\)") |
| 2128 | (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\n]*<\\)"))) | 2128 | (comment-re (concat "\\(?:!--" incomment-re "*-->[ \t\r\n]*<\\)"))) |
| 2129 | (concat "\\(?:<\\?xml[ \t\n]+[^>]*>\\)?[ \t\n]*<" | 2129 | (concat "\\(?:<\\?xml[ \t\r\n]+[^>]*>\\)?[ \t\r\n]*<" |
| 2130 | comment-re "*" | 2130 | comment-re "*" |
| 2131 | "\\(?:!DOCTYPE[ \t\n]+[^>]*>[ \t\n]*<[ \t\n]*" comment-re "*\\)?" | 2131 | "\\(?:!DOCTYPE[ \t\r\n]+[^>]*>[ \t\r\n]*<[ \t\r\n]*" comment-re "*\\)?" |
| 2132 | "[Hh][Tt][Mm][Ll]")) | 2132 | "[Hh][Tt][Mm][Ll]")) |
| 2133 | . html-mode) | 2133 | . html-mode) |
| 2134 | ;; These two must come after html, because they are more general: | 2134 | ;; These two must come after html, because they are more general: |