From b834ced3b4b80a75fd31eb90764fffa8499dc814 Mon Sep 17 00:00:00 2001 Message-Id: From: Mark Wooding Date: Sun, 25 Nov 2018 13:52:25 +0000 Subject: [PATCH] el/dot-emacs.el (mdw-fontify-pythonic): Numbers can't contain `_'. Organization: Straylight/Edgeware From: Mark Wooding Where did I get the idea that they could from? This isn't even Python 3. --- el/dot-emacs.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/el/dot-emacs.el b/el/dot-emacs.el index f0569e6..9453332 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2865,9 +2865,9 @@ (defun mdw-fontify-pythonic (keywords) '(0 font-lock-keyword-face)) ;; At least numbers are simpler than C. - (list (concat "\\_<0\\([xX][0-9a-fA-F_]+\\|[0-7_]+\\)\\|" - "\\_<[0-9][0-9_]*\\(\\.[0-9_]*\\|\\)" - "\\([eE]\\([-+]\\|\\)[0-9_]+\\|[lL]\\|\\)") + (list (concat "\\_<0\\([xX][0-9a-fA-F]+\\|[0-7]+\\)\\|" + "\\_<[0-9][0-9]*\\(\\.[0-9]*\\|\\)" + "\\([eE]\\([-+]\\|\\)[0-9]+\\|[lL]\\|\\)") '(0 mdw-number-face)) ;; And anything else is punctuation. -- [mdw]