all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reto Zimmermann <reto@gnu.org>
To: "Cyril Arnould" <cyril.arnould@outlook.com>,
	"Mattias Engdegård" <mattias.engdegard@gmail.com>
Cc: "friedrich.beckmann@gmx.de" <friedrich.beckmann@gmx.de>,
	Eli Zaretskii <eliz@gnu.org>,
	"62508@debbugs.gnu.org" <62508@debbugs.gnu.org>
Subject: bug#62508: 28.2; vhdl-mode ModelSim compile warnings aren't highlighted
Date: Mon, 3 Apr 2023 12:16:38 +0200	[thread overview]
Message-ID: <165bfef9-c6de-42f0-1bb9-ec093cb954e0@gnu.org> (raw)
In-Reply-To: <AS4PR10MB611094113FCE25A944E5453EE3929@AS4PR10MB6110.EURPRD10.PROD.OUTLOOK.COM>

[-- Attachment #1: Type: text/plain, Size: 1835 bytes --]

The regexp I sent had the "+" in there, it must have gotten lost 
somewhere in the process.  The single-escaped square brackets always 
worked fine, but I agree that it should be double-escaped to conform to 
the standard.

So yes, I agree with Mattias' fix.

Reto


On 03.04.2023 09:21, Cyril Arnould wrote:
> True, looking at the new regexp in emacs the escape characters are 
> highlighted in red, indicating an error. I can verify Mattias' 
> modification still works for me.
>
> I can't properly verify the bracketed version of the warning since I 
> don't get those with my ModelSim, but if I manually type out a warning 
> with brackets it does get highlighted when using re-builder. With 
> Reto's modification on the other hand the bracket warning is not 
> highlighted.
>
> Gesendet von Outlook für Android <https://aka.ms/AAb9ysg>
> ------------------------------------------------------------------------
> *From:* Mattias Engdegård <mattiasengdegard@gmail.com> on behalf of 
> Mattias Engdegård <mattias.engdegard@gmail.com>
> *Sent:* Saturday, April 1, 2023 2:01:19 PM
> *To:* reto@gnu.org <reto@gnu.org>
> *Cc:* Cyril Arnould <cyril.arnould@outlook.com>; Eli Zaretskii 
> <eliz@gnu.org>; friedrich.beckmann@gmx.de <friedrich.beckmann@gmx.de>; 
> 62508@debbugs.gnu.org <62508@debbugs.gnu.org>
> *Subject:* bug#62508: 28.2; vhdl-mode ModelSim compile warnings aren't 
> highlighted
> The new regexp,
>
> "^\\(ERROR\\|WARNING\\|\\*\\* Error\\|\\*\\* Warning\\)[^:]*:\\( 
> *\[[0-9]\]\\| ([^)]+)\\)? \\([^ \t\n]+\\)(\\([0-9]+\\)):"
> ^^^^^^^^^
>
> isn't quite right: there are single-escaped square brackets, and the 
> original regexp permitted multiple digits, not just one, between 
> square brackets. The part
>
>   "\[[0-9]\]"
>
> should probably be
>
>   "\\[[0-9]+]"
>
> but the author needs to confirm this.
>

[-- Attachment #2: Type: text/html, Size: 4238 bytes --]

  reply	other threads:[~2023-04-03 10:16 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-03-28 19:43 bug#62508: 28.2; vhdl-mode ModelSim compile warnings aren't highlighted Cyril Arnould
2023-03-29 11:04 ` Eli Zaretskii
2023-03-30 12:55   ` Reto Zimmermann
2023-03-30 14:23     ` Cyril Arnould
2023-04-01 10:09       ` Eli Zaretskii
2023-04-01 12:01 ` Mattias Engdegård
2023-04-03  7:21   ` Cyril Arnould
2023-04-03 10:16     ` Reto Zimmermann [this message]
2023-04-03 11:06     ` Mattias Engdegård

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

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

  git send-email \
    --in-reply-to=165bfef9-c6de-42f0-1bb9-ec093cb954e0@gnu.org \
    --to=reto@gnu.org \
    --cc=62508@debbugs.gnu.org \
    --cc=cyril.arnould@outlook.com \
    --cc=eliz@gnu.org \
    --cc=friedrich.beckmann@gmx.de \
    --cc=mattias.engdegard@gmail.com \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.