Fix info mode fontification of built-in (*note Built-ins::)

* lisp/info.el (Info-fontify-node): Don't interpret things like
"built-in" as being the word "in" (bug#34661).
This commit is contained in:
Lars Ingebrigtsen 2020-12-09 16:07:50 +01:00
parent beebd2a85e
commit 4a423ffb3b

View file

@ -4790,10 +4790,10 @@ first line or header line, and for breadcrumb links.")
;; an end of sentence
(skip-syntax-backward " ("))
(setq other-tag
(cond ((save-match-data (looking-back "\\<see"
(cond ((save-match-data (looking-back "\\(^\\| \\)see"
(- (point) 3)))
"")
((save-match-data (looking-back "\\<in"
((save-match-data (looking-back "\\(^\\| \\)in"
(- (point) 2)))
"")
((memq (char-before) '(nil ?\. ?! ??))