Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
bf5b1e26
Commit
bf5b1e26
authored
Aug 23, 2014
by
Alan Mackenzie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
progmodes/cc-fonts.el (c-font-lock-declarators): Fix infinite loop, bug
#18306. The bug was introduced on 2014-08-02.
parent
3410f2a3
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
8 deletions
+10
-8
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/progmodes/cc-fonts.el
lisp/progmodes/cc-fonts.el
+5
-8
No files found.
lisp/ChangeLog
View file @
bf5b1e26
2014-08-23 Alan Mackenzie <acm@muc.de>
* progmodes/cc-fonts.el (c-font-lock-declarators): Fix infinite
loop, bug #18306. The bug was introduced on 2014-08-02.
2014-08-21 Eli Zaretskii <eliz@gnu.org>
* textmodes/texnfo-upd.el (texinfo-specific-section-type): Don't
...
...
lisp/progmodes/cc-fonts.el
View file @
bf5b1e26
...
...
@@ -1116,14 +1116,11 @@ casts and declarations are fontified. Used on level 2 and higher."
;; initializing brace lists.
(
let
(
found
)
(
while
(
and
(
setq
found
(
c-syntactic-re-search-forward
"[;,]\\|\\s)\\|\\'\\|\\(=\\|\\s(\\)"
limit
t
t
))
(
eq
(
char-before
)
?\[
))
(
backward-char
)
(
c-safe
(
c-forward-sexp
1
))
(
setq
found
nil
)
(
setq
brackets-after-id
t
))
(
and
(
setq
found
(
c-syntactic-re-search-forward
"[;,]\\|\\s)\\|\\'\\|\\(=\\|\\s(\\)"
limit
t
t
))
(
eq
(
char-before
)
?\[
)
(
c-go-up-list-forward
))
(
setq
brackets-after-id
t
))
found
))
(
setq
next-pos
(
match-beginning
0
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment