chiark / gitweb /
el/dot-emacs.el (mdw-fontify-pythonic): Numbers can't contain `_'.
authorMark Wooding <mdw@distorted.org.uk>
Sun, 25 Nov 2018 13:52:25 +0000 (13:52 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sun, 25 Nov 2018 13:56:34 +0000 (13:56 +0000)
Where did I get the idea that they could from?  This isn't even Python
3.

el/dot-emacs.el

index f0569e6758166ac48bbeada6c4e2ab3f813c5b04..945333260ce7efc6e1f9bc5f519b32b7851d19b6 100644 (file)
@@ -2865,9 +2865,9 @@ (defun mdw-fontify-pythonic (keywords)
               '(0 font-lock-keyword-face))
 
         ;; At least numbers are simpler than C.
               '(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.
               '(0 mdw-number-face))
 
         ;; And anything else is punctuation.