emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/gnuplot 8d367f5 028/184: Better assignment-matching regexp


From: ELPA Syncer
Subject: [nongnu] elpa/gnuplot 8d367f5 028/184: Better assignment-matching regexp (?)
Date: Sun, 29 Aug 2021 11:03:09 -0400 (EDT)

branch: elpa/gnuplot
commit 8d367f588fec6ffd30ad221801884157eead3fd1
Author: Jonathan Oddie <j.j.oddie@gmail.com>
Commit: Jonathan Oddie <j.j.oddie@gmail.com>

    Better assignment-matching regexp (?)
---
 gnuplot.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/gnuplot.el b/gnuplot.el
index b658719..dc6458b 100644
--- a/gnuplot.el
+++ b/gnuplot.el
@@ -1610,8 +1610,8 @@ These are highlighted using `font-lock-reference-face'.")
         '("\\[\\([^]]+\\)\\]" 1 font-lock-reference-face)
 
         ;; variable/function definitions
-        '("\\(\\<[a-z]+[a-z_0-9(),\t]*\\)[ \t]*=" 1
-          font-lock-variable-name-face)
+        
'("\\(\\(\\sw\\|\\s_\\)+\\s-*\\((\\s-*\\(\\sw\\|\\s_\\)*\\s-*\\(,\\s-*\\sw*\\)*\\s-*)\\)?\\s-*=\\)[^=]"
+          1 font-lock-variable-name-face)
 
         ;; built-in function names
         (cons (gnuplot-make-regexp gnuplot-keywords-builtin-functions)
@@ -2298,7 +2298,6 @@ Add additional indentation for continuation lines."
 
 ;;
 ;; Functions for finding the start and end of continuation blocks
-;; (a bunch of 
 ;;
 
 ;; Check if line containing point is a continuation
@@ -2864,6 +2863,7 @@ a list:
   (if (or (fboundp 'hilit-set-mode-patterns)
          (equal gnuplot-keywords-when 'immediately)) ; <HW>
       (gnuplot-setup-info-look)) ;; <SE>
+
   (if (fboundp 'hilit-set-mode-patterns) ; deal with hilit19 (ho hum!)
       (let ((keywords (concat "\\b\\(" (mapconcat 'identity
                                                  gnuplot-keywords "\\|")



reply via email to

[Prev in Thread] Current Thread [Next in Thread]