Variable: c-maybe-quoted-number-head

c-maybe-quoted-number-head is a variable defined in cc-mode.el.gz.

Value

"\\(0\\([Xx]\\([[:xdigit:]]\\('?[[:xdigit:]]\\)*\\)?\\|[Bb]\\([01]\\('?[01]\\)*\\)?\\|\\('?[0-7]\\)*\\)\\|[1-9]\\('?[0-9]\\)*\\)"

Documentation

Regexp matching the head of a numeric literal, including with digit separators.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/cc-mode.el.gz
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; Parsing of quotes.
;;
;; Valid digit separators in numbers will get the syntax-table "punctuation"
;; property, '(1), and also the text property `c-digit-separator' value t.
;;
;; Invalid other quotes (i.e. those not validly bounding a single character,
;; or escaped character) will get the syntax-table "punctuation" property,
;; '(1), too.
;;
;; Note that, for convenience, these properties are applied even inside
;; comments and strings.

(defconst c-maybe-quoted-number-head
  (concat
   "\\(0\\("
       "[Xx]\\([[:xdigit:]]\\('?[[:xdigit:]]\\)*\\)?"
       "\\|"
       "[Bb]\\([01]\\('?[01]\\)*\\)?"
       "\\|"
       "\\('?[0-7]\\)*"
       "\\)"
   "\\|"
       "[1-9]\\('?[0-9]\\)*"
   "\\)")
  "Regexp matching the head of a numeric literal, including with digit separators.")