]> git.eshelyaron.com Git - emacs.git/commitdiff
(interpreter-mode-alist): Add mawk.
authorKarl Heuer <kwzh@gnu.org>
Mon, 19 Feb 1996 08:13:10 +0000 (08:13 +0000)
committerKarl Heuer <kwzh@gnu.org>
Mon, 19 Feb 1996 08:13:10 +0000 (08:13 +0000)
(set-auto-mode): Allow either space or tab in #! line.

lisp/files.el

index 4ceab9c5d1d9d9c4d2b53ec47227b0bb606f462d..31c7f257ce7d64530d569d5d206f1f7277372e6a 100644 (file)
@@ -1018,6 +1018,7 @@ REGEXP and search the list again for another match.")
     ("tcl" . tcl-mode)
     ("tclsh" . tcl-mode)
     ("awk" . awk-mode)
+    ("mawk" . awk-mode)
     ("nawk" . awk-mode)
     ("gawk" . awk-mode)
     ("scm" . scheme-mode)
@@ -1172,7 +1173,7 @@ If `enable-local-variables' is nil, this function does not check for a
                (let ((interpreter
                       (save-excursion
                         (goto-char (point-min))
-                        (if (looking-at "#! *\\([^ \t\n]*/bin/env +\\)?\\([^ \t\n]+\\)")
+                        (if (looking-at "#![ \t]?\\([^ \t\n]*/bin/env[ \t]\\)?\\([^ \t\n]+\\)")
                             (buffer-substring (match-beginning 2)
                                               (match-end 2))
                           "")))