Skip to content

Commit c97a7a6

Browse files
committed
Stop using obsolete font lock variables
Patch by Stefan Monnier
1 parent 68ff178 commit c97a7a6

File tree

1 file changed

+27
-27
lines changed

1 file changed

+27
-27
lines changed

gnuplot.el

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -930,33 +930,33 @@ These are highlighted using `font-lock-constant-face'.")
930930

931931
;; Set up colorization for gnuplot.
932932
(defvar gnuplot-font-lock-keywords
933-
(list
934-
;; stuff in brackets, sugg. by <LB>
935-
'("\\[\\([^]]+\\)\\]" 1 font-lock-constant-face)
936-
937-
;; variable/function definitions
938-
'("\\(\\(\\sw\\|\\s_\\)+\\s-*\\((\\s-*\\(\\sw\\|\\s_\\)*\\s-*\\(,\\s-*\\sw*\\)*\\s-*)\\)?\\s-*=\\)[^=]"
939-
1 font-lock-variable-name-face)
940-
941-
;; built-in function names
942-
(cons (gnuplot-make-regexp gnuplot-keywords-builtin-functions)
943-
font-lock-function-name-face)
944-
945-
;; reserved words associated with plotting <AL>
946-
(cons (gnuplot-make-regexp gnuplot-keywords-plotting)
947-
font-lock-type-face)
948-
(cons (gnuplot-make-regexp gnuplot-keywords-plotting-styles)
949-
font-lock-function-name-face)
950-
951-
;; (s)plot -- also thing (s)plotted
952-
'("\\<s?plot\\>" . font-lock-keyword-face)
953-
;; '("\\<s?plot\\s-+\\([^'\" ]+\\)[) \n,\\\\]"
954-
;; 1 font-lock-variable-name-face)
955-
956-
;; other common commands
957-
(cons (gnuplot-make-regexp gnuplot-keywords-misc)
958-
font-lock-constant-face)
959-
(cons "!.*$" font-lock-constant-face))) ; what is this for? jjo
933+
`(; stuff in brackets, sugg. by <LB>
934+
("\\[\\([^]]+\\)\\]" (1 'font-lock-constant-face))
935+
936+
;; variable/function definitions
937+
("\\(\\(\\sw\\|\\s_\\)+\\s-*\\((\\s-*\\(\\sw\\|\\s_\\)*\\s-*\\(,\\s-*\\sw*\\)*\\s-*)\\)?\\s-*=\\)[^=]"
938+
(1 'font-lock-variable-name-face))
939+
940+
;; built-in function names
941+
(,(gnuplot-make-regexp gnuplot-keywords-builtin-functions)
942+
(0 'font-lock-function-name-face))
943+
944+
;; reserved words associated with plotting <AL>
945+
(,(gnuplot-make-regexp gnuplot-keywords-plotting)
946+
(0 'font-lock-type-face))
947+
(,(gnuplot-make-regexp gnuplot-keywords-plotting-styles)
948+
(0 'font-lock-function-name-face))
949+
950+
;; (s)plot -- also thing (s)plotted
951+
("\\<s?plot\\>" (0 'font-lock-keyword-face))
952+
;; ("\\<s?plot\\s-+\\([^'\" ]+\\)[) \n,\\\\]"
953+
;; (1 'font-lock-variable-name-face))
954+
955+
;; other common commands
956+
(,(gnuplot-make-regexp gnuplot-keywords-misc)
957+
(0 'font-lock-constant-face))
958+
("!.*$" (0 'font-lock-constant-face))))
959+
960960

961961
(defvar gnuplot-font-lock-defaults
962962
'(gnuplot-font-lock-keywords

0 commit comments

Comments
 (0)