diff options
author | Karl Heuer <kwzh@gnu.org> | 1997-03-11 22:23:36 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1997-03-11 22:23:36 +0000 |
commit | 6e36fe0badf488de5c8bb2475ca475eaa88ea5a1 (patch) | |
tree | e2db8e175cc560f2b673c6e2df649a02700de601 /lisp/progmodes/make-mode.el | |
parent | 000f46219b02f8fdef2d4c95c56fd0264865f7fa (diff) | |
download | emacs-6e36fe0badf488de5c8bb2475ca475eaa88ea5a1.tar.gz |
(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.
Diffstat (limited to 'lisp/progmodes/make-mode.el')
-rw-r--r-- | lisp/progmodes/make-mode.el | 4 |
1 files changed, 2 insertions, 2 deletions
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 |