[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Syntax of $ in makefile-mode
From: |
Dima Kogan |
Subject: |
Syntax of $ in makefile-mode |
Date: |
Thu, 15 Sep 2016 21:29:56 -0700 |
User-agent: |
mu4e 0.9.17; emacs 25.1.1 |
Hi.
I've been working with Makefiles recently, and discovered that $ has
word syntax. This results in odd behaviors. For instance, if you have
asdf-$(xyz)
in your buffer with the point on 'a', then commands like M-s . or
C-M-SPC select "asdf-$", which makes no sense. Shouldn't $ have
punctuation syntax (attached patch)? Am I missing something obvious
here?
diff --git a/lisp/progmodes/make-mode.el b/lisp/progmodes/make-mode.el
index fb71420..2b4ed85 100644
--- a/lisp/progmodes/make-mode.el
+++ b/lisp/progmodes/make-mode.el
@@ -712,6 +712,7 @@ makefile-mode-syntax-table
(modify-syntax-entry ?# "< " st)
(modify-syntax-entry ?\n "> " st)
(modify-syntax-entry ?= "." st)
+ (modify-syntax-entry ?$ "." st)
st)
"Syntax table used in `makefile-mode'.")
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Syntax of $ in makefile-mode,
Dima Kogan <=