🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.bug
Article #87370

font-lock regex error

#87370
From: Andrew Athan
Date: Tue, 27 Sep 1994 18:55
24 lines
1761 bytes
In the version of font-lock.el which I have (there doesn't seem to be a
version number anywhere in it) under emacs 19.27, the texi-font-lock-keywords
have a bug.  The regex entry for comments does not work...

The following defvar replaces that line in the (list ... construct with one
that works (see line ending in ;comments).

aca

(defvar texi-font-lock-keywords
  (list
   "@\\(@\\|[^}\t \n{]+\\)"					;commands
   '("^\\(@c\\|@comment\\)[ \t].*$" 0 font-lock-comment-face t)	;comments
   '("^\\(*.*\\)[\t ]*$" 1 font-lock-function-name-face t)	;menu items
   '("@\\(emph\\|strong\\|b\\|i\\){\\([^}]+\\)" 2 font-lock-comment-face t)
   '("@\\(file\\|kbd\\|key\\){\\([^}]+\\)" 2 font-lock-string-face t)
   '("@\\(samp\\|code\\|var\\){\\([^}]+\\)" 2 font-lock-function-name-face t)
   '("@\\(xref\\|pxref\\){\\([^}]+\\)" 2 font-lock-keyword-face t)
   '("@end *\\([a-zA-Z0-9]+\\)[ \t]*$" 1 font-lock-function-name-face t)
   '("@item \\(.*\\)$" 1 font-lock-function-name-face t)
   '("\\$\\([^$]*\\)\\$" 1 font-lock-string-face t)
   )
  "Additional expressions to highlight in TeXinfo mode.")
Technical Details
Message-ID: <ATHAN.94Sep27145022@bwit182.morgan.com>
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!morgan.COM!athan

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fb2f1,45575fa325509158,start
X-Google-Attributes: gidfb2f1,public
X-Google-ArrivalTime: 1994-09-27 12:04:23 PST
Path: arc1-ca.pugleaf.net!bga.com!news.sprintlink.net!howland.reston.ans.net!math.ohio-state.edu!cis.ohio-state.edu!morgan.COM!athan
From: athan@morgan.COM (Andrew Athan)
Newsgroups: gnu.emacs.bug
Subject: font-lock regex error
Followup-To: gnu.emacs.bug
Date: 27 Sep 1994 14:55:57 -0400
Organization: Morgan Stanley
Lines: 24
Sender: daemon@cis.ohio-state.edu
Approved: bug-gnu-emacs@prep.ai.mit.edu
Distribution: gnu
Message-ID: <ATHAN.94Sep27145022@bwit182.morgan.com>