emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: info faces for strings and quotations


From: Drew Adams
Subject: RE: info faces for strings and quotations
Date: Tue, 5 Oct 2004 01:58:44 -0700

Sorry, the main regexp should be non-greedy. This:

  "\"[^\"]*?\\([\\\\]*\\)\"\\|`[^'\n]+'"

instead of this:

  "\"[^\"]*\\([\\\\]*\\)\"\\|`[^'\n]+'"

Thanks Lennart.

 - Drew



-----Original Message-----
Below is code that highlights "..." and `...' quotations in Info.
...
(defun info-fontify-quotations ()
  "..."
  (goto-char (point-min))
  (let ((either-re "\"[^\"]*\\([\\\\]*\\)\"\\|`[^'\n]+'")
      ...))




reply via email to

[Prev in Thread] Current Thread [Next in Thread]