mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2025-01-28 19:42:02 +00:00
CC Mode: Allow the insertion of long strings of letters in reasonable time
This fix allows M-: (insert (make-string 1000000 ?y)) to work fast when inserted between C++ raw string delimiters after (setq long-line-threshold nil). * lisp/progmodes/cc-langs.el (c-symbol-key): Replace a "*" by "\\{,1000\\}" in a regexp.
This commit is contained in:
parent
97a54d1327
commit
7497aeff64
@ -850,7 +850,7 @@ This is of the form that fits inside [ ] in a regexp."
|
||||
"Regexp matching identifiers and keywords (with submatch 0). Assumed
|
||||
to match if `c-symbol-start' matches on the same position."
|
||||
t (concat (c-lang-const c-symbol-start)
|
||||
"[" (c-lang-const c-symbol-chars) "]*")
|
||||
"[" (c-lang-const c-symbol-chars) "]\\{,1000\\}")
|
||||
pike (concat
|
||||
;; Use the value from C here since the operator backquote is
|
||||
;; covered by the other alternative.
|
||||
|
Loading…
Reference in New Issue
Block a user