Variable: highlight-numbers-modelist

highlight-numbers-modelist is a variable defined in highlight-numbers.el.

Value

#s(hash-table size 65 test eq rehash-size 1.5 rehash-threshold 0.8125 data
	      (c-mode "\\_<\\(?:[[:digit:]]+\\(?:\\.[[:digit:]]*\\)?\\(?:[Ee][+-]?[[:digit:]]+\\)?\\|0[Xx][[:xdigit:]]+\\)\\(?:L\\(?:L[Uu]\\|l[Uu]\\|[LUlu]\\)\\|U\\(?:L[Ll]\\|l[Ll]\\|[Ll]\\)\\|l\\(?:L[Uu]\\|l[Uu]\\|[LUlu]\\)\\|u\\(?:L[Ll]\\|l[Ll]\\|[Ll]\\)\\|[FLUflu]\\)?\\_>" c++-mode "\\_<\\(?:[[:digit:]]+\\(?:\\.[[:digit:]]*\\)?\\(?:[Ee][+-]?[[:digit:]]+\\)?\\|0[Xx][[:xdigit:]]+\\)\\(?:[A-Z_a-z][0-9A-Z_a-z]*\\)?\\_>" lisp-mode "\\(?:\\_<\\(?:[+-]?[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\|\\.\\(?:[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\)?\\)?\\|/[[:digit:]]+\\)?\\|\\.[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\)?\\)\\|#\\_<\\(?:[Bb][+-]?[01]+\\|[Oo][+-]?[0-7]+\\|[Xx][+-]?[[:xdigit:]]+\\)\\)\\_>" scheme-mode "\\(?:\\_<\\(?:[+-]?[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\|\\.\\(?:[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\)?\\)?\\|/[[:digit:]]+\\)?\\|\\.[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\)?\\)\\|#\\_<\\(?:[Bb][+-]?[01]+\\|[Oo][+-]?[0-7]+\\|[Xx][+-]?[[:xdigit:]]+\\)\\)\\_>" emacs-lisp-mode "\\(?:\\_<\\(?:[+-]?[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\|\\.\\(?:[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\)?\\)?\\)?\\|\\.[[:digit:]]+\\(?:[Ee][+-]?[[:digit:]]+\\)?\\)\\|#\\_<\\(?:[Bb][+-]?[01]+\\|[Oo][+-]?[0-7]+\\|[Xx][+-]?[[:xdigit:]]+\\)\\)\\_>" clojure-mode "\\_<-?[[:digit:]].*?\\_>" julia-mode "\\_<\\(?:[[:digit:]]+\\(?:\\.[[:digit:]]*\\)?\\(?:[Ee][+-]?[[:digit:]]+\\)?\\|0[Xx][[:xdigit:]]+\\)" ess-julia-mode "\\_<\\(?:[[:digit:]]+\\(?:\\.[[:digit:]]*\\)?\\(?:[Ee][+-]?[[:digit:]]+\\)?\\|0[Xx][[:xdigit:]]+\\)"))

Documentation

Hash table storing the mode-specific number highlighting regexps.

The keys are major mode symbols, the values are regexps or symbol do-not-use, which prevents highlight-numbers-mode(var)/highlight-numbers-mode(fun) from doing anything when the buffer is in the specified major mode.

Parent modes are taken into account, e.g. if there's no lisp-interaction-mode in the modelist, but emacs-lisp-mode is there, the highlighting used for the latter will be used for the former too.

Source Code

;; Defined in ~/.emacs.d/elpa/highlight-numbers-20181013.1744/highlight-numbers.el
(defvar highlight-numbers-modelist
  (copy-hash-table
   (eval-when-compile
     (let ((table (make-hash-table :test 'eq)))
       (puthash 'c-mode
                (rx (and
                     symbol-start
                     (or (and (+ digit)
                              (? (and "." (* digit)))
                              (? (and (any "eE")
                                      (? (any "-+"))
                                      (+ digit))))
                         (and "0"
                              (any "xX")
                              (+ hex-digit)))
                     (? (or "f" "F"
                            "u" "U"
                            "l" "L"
                            "ll" "lL" "Ll" "LL"
                            "ul" "uL" "Ul" "UL"
                            "lu" "lU" "Lu" "LU"
                            "ull" "ulL" "uLl" "uLL" "Ull" "UlL" "ULl" "ULL"
                            "llu" "llU" "lLu" "lLU" "Llu" "LlU" "LLu" "LLU"))
                     symbol-end))
                table)
       (puthash 'c++-mode
                (rx (and
                     symbol-start
                     (or (and (+ digit)
                              (? (and "." (* digit)))
                              (? (and (any "eE")
                                      (? (any "-+"))
                                      (+ digit))))
                         (and "0"
                              (any "xX")
                              (+ hex-digit)))
                     (? (and (any "_" "A-Z" "a-z")
                             (* (any "_" "A-Z" "a-z" "0-9"))))
                     symbol-end))
                table)
       (puthash 'lisp-mode
                (rx (and
                     (or (and
                          symbol-start
                          (or
                           (and
                            (? (any "-+"))
                            (+ digit)
                            (? (or (and (any "eE")
                                        (? (any "-+"))
                                        (+ digit))
                                   (and "."
                                        (? (and (+ digit)
                                                (? (and
                                                    (any "eE")
                                                    (? (any "-+"))
                                                    (+ digit))))))
                                   (and "/"
                                        (+ digit)))))
                           (and
                            "."
                            (+ digit)
                            (? (and
                                (any "eE")
                                (? (any "-+"))
                                (+ digit))))))
                         (and "#"
                              symbol-start
                              (or (and (any "bB")
                                       (? (any "-+"))
                                       (+ (any "01")))
                                  (and (any "oO")
                                       (? (any "-+"))
                                       (+ (any "0-7")))
                                  (and (any "xX")
                                       (? (any "-+"))
                                       (+ hex-digit)))))
                     symbol-end))
                table)
       (puthash 'scheme-mode (gethash 'lisp-mode table) table)
       (puthash 'emacs-lisp-mode
                (rx (and
                     (or (and
                          symbol-start
                          (or
                           (and
                            (? (any "-+"))
                            (+ digit)
                            (? (or (and (any "eE")
                                        (? (any "-+"))
                                        (+ digit))
                                   (and "."
                                        (? (and (+ digit)
                                                (? (and
                                                    (any "eE")
                                                    (? (any "-+"))
                                                    (+ digit)))))))))
                           (and
                            "."
                            (+ digit)
                            (? (and
                                (any "eE")
                                (? (any "-+"))
                                (+ digit))))))
                         (and "#"
                              symbol-start
                              (or (and (any "bB")
                                       (? (any "-+"))
                                       (+ (any "01")))
                                  (and (any "oO")
                                       (? (any "-+"))
                                       (+ (any "0-7")))
                                  (and (any "xX")
                                       (? (any "-+"))
                                       (+ hex-digit)))))
                     symbol-end))
                table)
       (puthash 'clojure-mode
                (rx (and symbol-start
                         (? "-")
                         digit
                         (*? any)
                         symbol-end))
                table)
       (puthash 'julia-mode
                (rx (and
                     symbol-start
                     (or (and (+ digit)
                              (? (and "." (* digit)))
                              (? (and (any "eE")
                                      (? (any "-+"))
                                      (+ digit))))
                         (and "0"
                              (any "xX")
                              (+ hex-digit)))))
                table)
       (puthash 'ess-julia-mode
                (rx (and
                     symbol-start
                     (or (and (+ digit)
                              (? (and "." (* digit)))
                              (? (and (any "eE")
                                      (? (any "-+"))
                                      (+ digit))))
                         (and "0"
                              (any "xX")
                              (+ hex-digit)))))
                table)
       table)))
  "Hash table storing the mode-specific number highlighting regexps.

The keys are major mode symbols, the values are regexps or symbol
`do-not-use', which prevents `highlight-numbers-mode' from doing
anything when the buffer is in the specified major mode.

Parent modes are taken into account, e.g. if there's no
`lisp-interaction-mode' in the modelist, but `emacs-lisp-mode'
is there, the highlighting used for the latter will be used for
the former too.")