unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Keith David Bershatsky <esq@lawlist.com>
To: 16881@debbugs.gnu.org
Subject: bug#16881: Acknowledgement (24.3.50; line 584 of tex-mode.el [^'\">{]+ is not working correctly)
Date: Tue, 25 Feb 2014 16:51:02 -0800	[thread overview]
Message-ID: <m2sir6ae89.wl%esq@lawlist.com> (raw)
In-Reply-To: <m2lhwz6qa7.wl%esq@lawlist.com>

The proposed new regexp that I submitted with my initial bug report was much too broad -- i.e., it did not stop at the first pair of ending quotes.

Here is a revised draft which seems to be working better:

  ;; Text between `` quotes ''.
  (list (concat (regexp-opt `("``" "\"<" "\"`" "<<" "«") t)
          "\\(\\(.\\|\n\\)+?\\)"
          (regexp-opt `("''" "\">" "\"'" ">>" "»") t))
       '(1 font-lock-keyword-face)
       '(2 font-lock-string-face)
       '(4 font-lock-keyword-face))

Thanks,

Keith





  reply	other threads:[~2014-02-26  0:51 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-02-25 17:44 bug#16881: 24.3.50; line 584 of tex-mode.el [^'\">{]+ is not working correctly Keith David Bershatsky
2014-02-26  0:51 ` Keith David Bershatsky [this message]
2021-05-29 11:46   ` Lars Ingebrigtsen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2sir6ae89.wl%esq@lawlist.com \
    --to=esq@lawlist.com \
    --cc=16881@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).