mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-17 05:30:43 -08:00
(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.
This commit is contained in:
parent
000f46219b
commit
6e36fe0bad
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue