diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2003-11-26 16:49:33 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2003-11-26 16:49:33 +0000 |
commit | 310ee6ada7ef300364684ee3edbb3a8cc8de1799 (patch) | |
tree | cc6cbc12482e912c4ad8859140b903f340cefda6 /lisp/progmodes/make-mode.el | |
parent | d0d071d2d7d7ab8c22df30e33cc2b6e02dd52f7c (diff) | |
download | emacs-310ee6ada7ef300364684ee3edbb3a8cc8de1799.tar.gz |
(makefile-font-lock-syntactic-keywords): Don't use `space' for \\\n.
Be more selective as to which # are comment-starters.
Diffstat (limited to 'lisp/progmodes/make-mode.el')
-rw-r--r-- | lisp/progmodes/make-mode.el | 11 |
1 files changed, 8 insertions, 3 deletions
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 |