On Fri, Feb 21 2014, Stefan Monnier wrote: >> Perhaps this would be better: > >> (defconst num3--number-re >> (concat "[0#][xX]\\([[:xdigit:]]+\\)" ; 1 = hexadecimal >> "\\|\\(?1:\\b\\(?:[0-9]+[a-fA-F]\\|" ; 1 = hexadecimal >> "[a-fA-F]+[0-9]\\)[[:xdigit:]]*\\b\\)" >> "\\|\\([0-9]+\\)" ; 2 = decimal >> "\\|\\.\\([0-9]+\\)")) ; 3 = fraction > >> So there would have to be at least one decimal digit and the whole >> sequence would have to be a complete word (i.e. 1000Ah, which would be >> a pretty big battery, won't be highlighted as a hexadecimal number). > > Sounds good. Can you install that? Pushed. -- Best regards, _ _ .o. | Liege of Serenely Enlightened Majesty of o' \,=./ `o ..o | Computer Science, Michał “mina86” Nazarewicz (o o) ooo +------ooO--(_)--Ooo--