X-Git-Url: https://code.delx.au/gnu-emacs-elpa/blobdiff_plain/d99d86e1ddd651b4b31e85a400d1b5f9bf4b811a..34a33fa74a7ded2456e75138e93ba0c057615f80:/packages/num3-mode/num3-mode.el diff --git a/packages/num3-mode/num3-mode.el b/packages/num3-mode/num3-mode.el index b890c8992..4e4f625e4 100644 --- a/packages/num3-mode/num3-mode.el +++ b/packages/num3-mode/num3-mode.el @@ -4,8 +4,8 @@ ;; Author: Felix Lee , Michal Nazarewicz ;; Maintainer: Michal Nazarewicz -;; Keywoards: faces, minor-mode -;; Version: 1.1 +;; Keywords: faces, minor-mode +;; Version: 1.2 ;; GNU Emacs is free software: you can redistribute it and/or modify ;; it under the terms of the GNU General Public License as published by @@ -98,9 +98,11 @@ where) decimal point (would be) is." (define-globalized-minor-mode global-num3-mode num3-mode num3-mode) (defconst num3--number-re - (concat "\\(?:0[xX]\\|#\\)\\([0-9a-fA-F]+\\)" ; 1 = hexadecimal - "\\|\\([0-9]+\\)" ; 2 = decimal - "\\|\\.\\([0-9]+\\)")) ; 3 = fraction + (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 (defun num3--matcher (lim) "Function used as a font-lock-keywoard handler used in `num3-mode'.