~mdw
/
profile
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b834ced
)
el/dot-emacs.el (mdw-fontify-pythonic): Recognize `0o...' and `0b...'.
author
Mark Wooding
<mdw@distorted.org.uk>
Sun, 25 Nov 2018 13:53:03 +0000
(13:53 +0000)
committer
Mark Wooding
<mdw@distorted.org.uk>
Sun, 25 Nov 2018 13:56:34 +0000
(13:56 +0000)
I must have missed these being introduced.
el/dot-emacs.el
patch
|
blob
|
blame
|
history
diff --git
a/el/dot-emacs.el
b/el/dot-emacs.el
index
9453332
..
0af3c56
100644
(file)
--- a/
el/dot-emacs.el
+++ b/
el/dot-emacs.el
@@
-2865,7
+2865,7
@@
strip numbers instead."
'(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))