diff options
Diffstat (limited to 'lisp/progmodes/cc-langs.el')
-rw-r--r-- | lisp/progmodes/cc-langs.el | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/progmodes/cc-langs.el b/lisp/progmodes/cc-langs.el index 3b455fc0908..84d4eab75af 100644 --- a/lisp/progmodes/cc-langs.el +++ b/lisp/progmodes/cc-langs.el @@ -1334,6 +1334,21 @@ operators." (c-lang-defvar c-multichar->-op-not->>-regexp (c-lang-const c-multichar->-op-not->>-regexp)) +(c-lang-defconst c-:-op-cont-tokens + ;; A list of second and subsequent characters of all multicharacter tokens + ;; that begin with ":". + t (c-filter-ops (c-lang-const c-all-op-syntax-tokens) + t + "\\`:." + (lambda (op) (substring op 1)))) + +(c-lang-defconst c-:-op-cont-regexp + ;; Regexp matching the second and subsequent characters of all + ;; multicharacter tokens that begin with ":". + t (c-make-keywords-re nil (c-lang-const c-:-op-cont-tokens))) +(c-lang-defvar c-:-op-cont-regexp + (c-lang-const c-:-op-cont-regexp)) + (c-lang-defconst c-stmt-delim-chars ;; The characters that should be considered to bound statements. To ;; optimize `c-crosses-statement-barrier-p' somewhat, it's assumed to |