Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
434f8c11
Commit
434f8c11
authored
Feb 19, 2009
by
Stefan Monnier
Browse files
(font-lock-fontify-syntactic-keywords-region):
Make sure we stop when we reach the limit.
parent
c9176b9f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
3 deletions
+7
-3
lisp/ChangeLog
lisp/ChangeLog
+3
-0
lisp/font-lock.el
lisp/font-lock.el
+4
-3
No files found.
lisp/ChangeLog
View file @
434f8c11
2009-02-19 Stefan Monnier <monnier@iro.umontreal.ca>
* font-lock.el (font-lock-fontify-syntactic-keywords-region):
Make sure we stop when we reach the limit.
* progmodes/sh-script.el (sh-font-lock-quoted-subshell): ' inside
a "..." does not quote anything.
...
...
lisp/font-lock.el
View file @
434f8c11
...
...
@@ -1473,9 +1473,10 @@ START should be at the beginning of a line."
;; Find an occurrence of `matcher' from `start' to `end'.
(
setq
keyword
(
car
keywords
)
matcher
(
car
keyword
))
(
goto-char
start
)
(
while
(
if
(
stringp
matcher
)
(
re-search-forward
matcher
end
t
)
(
funcall
matcher
end
))
(
while
(
and
(
<
(
point
)
end
)
(
if
(
stringp
matcher
)
(
re-search-forward
matcher
end
t
)
(
funcall
matcher
end
)))
;; Apply each highlight to this instance of `matcher', which may be
;; specific highlights or more keywords anchored to `matcher'.
(
setq
highlights
(
cdr
keyword
))
...
...
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