From: Mark Wooding Date: Sat, 25 May 2019 12:20:04 +0000 (+0100) Subject: el/dot-emacs.el: Rename `...-constants' to `...-builtins'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/300f8827af208febfc730bb14f246e61781e09a7?ds=sidebyside el/dot-emacs.el: Rename `...-constants' to `...-builtins'. That's closer to what I'm using them as, I think. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 97ad03c..b65c132 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2080,7 +2080,7 @@ (defun mdw-fontify-c-and-c++ () "__typeof__" ;GCC "__volatile__" ;GCC )) - (c-constants + (c-builtins (mdw-regexps "false" ;C++, C99 macro "this" ;C++ "true" ;C++, C99 macro @@ -2116,7 +2116,7 @@ (defun mdw-fontify-c-and-c++ () (list (concat "\\<\\(" c-keywords "\\)\\>") '(0 font-lock-keyword-face)) - (list (concat "\\<\\(" c-constants "\\)\\>") + (list (concat "\\<\\(" c-builtins "\\)\\>") '(0 font-lock-variable-name-face)) ;; Handle numbers too. @@ -2229,7 +2229,7 @@ (defun mdw-fontify-java () "void" "volatile" "while")) - (java-constants + (java-builtins (mdw-regexps "false" "null" "super" "this" "true"))) (setq font-lock-keywords @@ -2239,8 +2239,8 @@ (defun mdw-fontify-java () (list (concat "\\<\\(" java-keywords "\\)\\>") '(0 font-lock-keyword-face)) - ;; Handle the magic constants defined above. - (list (concat "\\<\\(" java-constants "\\)\\>") + ;; Handle the magic builtins defined above. + (list (concat "\\<\\(" java-builtins "\\)\\>") '(0 font-lock-variable-name-face)) ;; Handle numbers too. @@ -2286,7 +2286,7 @@ (defun mdw-fontify-javascript () "boolean" "byte" "char" "double" "float" "int" "long" "short" "void")) - (javascript-constants + (javascript-builtins (mdw-regexps "false" "null" "undefined" "Infinity" "NaN" "true" "arguments" "this"))) @@ -2297,8 +2297,8 @@ (defun mdw-fontify-javascript () (list (concat "\\_<\\(" javascript-keywords "\\)\\_>") '(0 font-lock-keyword-face)) - ;; Handle the predefined constants defined above. - (list (concat "\\_<\\(" javascript-constants "\\)\\_>") + ;; Handle the predefined builtins defined above. + (list (concat "\\_<\\(" javascript-builtins "\\)\\_>") '(0 font-lock-variable-name-face)) ;; Handle numbers too. @@ -2424,7 +2424,7 @@ (defun mdw-fontify-csharp () "unsafe" "ushort" "using" "virtual" "void" "volatile" "while" "yield")) - (csharp-constants + (csharp-builtins (mdw-regexps "base" "false" "null" "this" "true"))) (setq font-lock-keywords @@ -2434,8 +2434,8 @@ (defun mdw-fontify-csharp () (list (concat "\\<\\(" csharp-keywords "\\)\\>") '(0 font-lock-keyword-face)) - ;; Handle the magic constants defined above. - (list (concat "\\<\\(" csharp-constants "\\)\\>") + ;; Handle the magic builtins defined above. + (list (concat "\\<\\(" csharp-builtins "\\)\\>") '(0 font-lock-variable-name-face)) ;; Handle numbers too.