From: Mark Wooding Date: Sun, 25 Nov 2018 13:53:03 +0000 (+0000) Subject: el/dot-emacs.el (mdw-fontify-pythonic): Recognize `0o...' and `0b...'. X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/profile/commitdiff_plain/b257436d95451423e020ca84e9b35bc97b4f9f68?ds=inline el/dot-emacs.el (mdw-fontify-pythonic): Recognize `0o...' and `0b...'. I must have missed these being introduced. --- diff --git a/el/dot-emacs.el b/el/dot-emacs.el index 9453332..0af3c56 100644 --- a/el/dot-emacs.el +++ b/el/dot-emacs.el @@ -2865,7 +2865,7 @@ (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]+\\)\\|" + (list (concat "\\_<0\\([xX][0-9a-fA-F]+\\|[oO]?[0-7]+\\|[bB][01]+\\)\\|" "\\_<[0-9][0-9]*\\(\\.[0-9]*\\|\\)" "\\([eE]\\([-+]\\|\\)[0-9]+\\|[lL]\\|\\)") '(0 mdw-number-face))