From: Karl Heuer Date: Tue, 11 Mar 1997 22:23:36 +0000 (+0000) Subject: (makefile-dependency-regex): Disallow "=" in name, X-Git-Tag: emacs-20.1~2803 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e36fe0badf488de5c8bb2475ca475eaa88ea5a1;p=emacs.git (makefile-dependency-regex): Disallow "=" in name, so that "flags=-o:1" is treated as an assignment, not a dependency. (makefile-dependency-regex, makefile-macroassign-regex): Disallow spaces in symbol name. --- diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index 25aaf3b8cf7..7c7580a7f20 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -188,14 +188,14 @@ not be enclosed in { } or ( ).") ;; that if you change this regexp you must fix the imenu index ;; function defined at the end of the file. (defconst makefile-dependency-regex - "^ *\\([^\n\t#:]+\\([ \t]+[^ \t\n#:]+\\)*\\)[ \t]*:\\([ \t]*$\\|\\([^=\n].*$\\)\\)" + "^ *\\([^ \n\t#:=]+\\([ \t]+[^ \t\n#:=]+\\)*\\)[ \t]*:\\([ \t]*$\\|\\([^=\n].*$\\)\\)" "Regex used to find dependency lines in a makefile.") ;; Note that the first subexpression is used by font lock. Note that ;; if you change this regexp you must fix the imenu index function ;; defined at the end of the file. (defconst makefile-macroassign-regex - "^ *\\([^\n\t][^:#= \t\n]*\\)[ \t]*[*:+]?:?=" + "^ *\\([^ \n\t][^:#= \t\n]*\\)[ \t]*[*:+]?:?=" "Regex used to find macro assignment lines in a makefile.") (defconst makefile-ignored-files-in-pickup-regex