From: Stefan Monnier Date: Wed, 26 Nov 2003 16:49:33 +0000 (+0000) Subject: (makefile-font-lock-syntactic-keywords): Don't use `space' for \\\n. X-Git-Tag: ttn-vms-21-2-B4~8267 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=310ee6ada7ef300364684ee3edbb3a8cc8de1799;p=emacs.git (makefile-font-lock-syntactic-keywords): Don't use `space' for \\\n. Be more selective as to which # are comment-starters. --- diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el index ae977b1e52e..f56d08a76b7 100644 --- a/lisp/progmodes/make-mode.el +++ b/lisp/progmodes/make-mode.el @@ -301,9 +301,14 @@ not be enclosed in { } or ( )." '("^\\( +\\)\t" 1 makefile-space-face))) (defconst makefile-font-lock-syntactic-keywords - (list - ;; Change the syntax of a quoted newline so that it does not end a comment. - '("\\\\\n" 0 " "))) + ;; From sh-script.el. + ;; A `#' begins a comment in sh when it is unquoted and at the beginning + ;; of a word. In the shell, words are separated by metacharacters. + ;; The list of special chars is taken from the single-unix spec of the + ;; shell command language (under `quoting') but with `$' removed. + '(("[^|&;<>()`\\\"' \t\n]\\(#+\\)" 1 "_") + ;; Change the syntax of a quoted newline so that it does not end a comment. + ("\\\\\n" 0 "."))) (defvar makefile-imenu-generic-expression (list