aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2003-11-26 16:49:33 +0000
committerStefan Monnier2003-11-26 16:49:33 +0000
commit310ee6ada7ef300364684ee3edbb3a8cc8de1799 (patch)
treecc6cbc12482e912c4ad8859140b903f340cefda6
parentd0d071d2d7d7ab8c22df30e33cc2b6e02dd52f7c (diff)
downloademacs-310ee6ada7ef300364684ee3edbb3a8cc8de1799.tar.gz
emacs-310ee6ada7ef300364684ee3edbb3a8cc8de1799.zip
(makefile-font-lock-syntactic-keywords): Don't use `space' for \\\n.
Be more selective as to which # are comment-starters.
-rw-r--r--lisp/progmodes/make-mode.el11
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 ( )."
301 '("^\\( +\\)\t" 1 makefile-space-face))) 301 '("^\\( +\\)\t" 1 makefile-space-face)))
302 302
303(defconst makefile-font-lock-syntactic-keywords 303(defconst makefile-font-lock-syntactic-keywords
304 (list 304 ;; From sh-script.el.
305 ;; Change the syntax of a quoted newline so that it does not end a comment. 305 ;; A `#' begins a comment in sh when it is unquoted and at the beginning
306 '("\\\\\n" 0 " "))) 306 ;; of a word. In the shell, words are separated by metacharacters.
307 ;; The list of special chars is taken from the single-unix spec of the
308 ;; shell command language (under `quoting') but with `$' removed.
309 '(("[^|&;<>()`\\\"' \t\n]\\(#+\\)" 1 "_")
310 ;; Change the syntax of a quoted newline so that it does not end a comment.
311 ("\\\\\n" 0 ".")))
307 312
308(defvar makefile-imenu-generic-expression 313(defvar makefile-imenu-generic-expression
309 (list 314 (list