From 4ad04c6026c261f666897242fe14b353d963422a Mon Sep 17 00:00:00 2001 From: Lucas Werkmeister Date: Thu, 27 Sep 2018 13:44:45 +0200 Subject: [PATCH] Add highlighting for macro expansion MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The regex for variable names is based on the one in the line right above it, for variable definitions (and therefore, like it, suffers from #11), but is somewhat simplified, since macro expansion doesn’t include argument lists and we can skip the word separator detection. Fixes #10. --- gnuplot-mode.el | 1 + 1 file changed, 1 insertion(+) diff --git a/gnuplot-mode.el b/gnuplot-mode.el index ff81922..243d1c4 100644 --- a/gnuplot-mode.el +++ b/gnuplot-mode.el @@ -237,6 +237,7 @@ multiple lines. Used in `gnuplot-find-indent-column' and in (,gp-variables . font-lock-variable-name-face) ("!" . font-lock-negation-char-face) ("\\(\\<[a-z]+[a-z_0-9(),]*\\)[ \t]*=" . font-lock-variable-name-face) ; variable declaration + ("@[a-z][a-z_0-9]*" . font-lock-preprocessor-face) ; macro expansion ("\$[0-9]+" . font-lock-string-face) ; columns ("\\[\\([^]]+\\)\\]" 1 font-lock-string-face))) ; brackets