all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: Aleksandr Vityazev <avityazev@posteo.org>
Cc: 60012@debbugs.gnu.org
Subject: bug#60012: 30.0.50; bug-reference-prog-mode: Error during redisplay with tree-sitter modes
Date: Mon, 12 Dec 2022 18:54:28 +0200	[thread overview]
Message-ID: <83pmcor29n.fsf@gnu.org> (raw)
In-Reply-To: <87wn6wh91p.fsf@posteo.org> (message from Aleksandr Vityazev on Mon, 12 Dec 2022 16:38:10 +0000)

> From: Aleksandr Vityazev <avityazev@posteo.org>
> Date: Mon, 12 Dec 2022 16:38:10 +0000
> 
> The error was discovered when I was watching
> https://github.com/zevlg/telega.el. I will add copies of the necessary
> files from there to reproduce the behavior.
> 
> 1. mkidr ~/test-project
> 2. mv test-project
> 2. Add a .dir-locals.el file with the following content:
> 
> --8<---------------cut here---------------start------------->8---
> ;;; Directory Local Variables
> ;;; For more information see (info "(emacs) Directory Variables")
> 
> ((nil . ((bug-reference-url-format . "https://github.com/zevlg/telega.el/issues/%s")
>          (bug-reference-bug-regexp
>           . "<https?://\\(github)\\.com/zevlg/telega.el/issues/\\([0-9]+\\)>"))))
> --8<---------------cut here---------------end--------------->8---
> 
> 3. Add Dockerfile file with the following content:
> 
> --8<---------------cut here---------------start------------->8---
> FROM alpine:latest AS builder
> ARG tdlib_branch=master
> ARG telega_branch=master
> CMD ["/bin/bash"]
> --8<---------------cut here---------------end--------------->8---
> 
> 4. with emacs -Q (add-hook 'prog-mode-hook 'bug-reference-prog-mode)
> 5. C-x C-f ~/test-project/Dockerfile
> 6. The file will be opened with dockerfile-ts-mode
> 7. See that syntax highlighting does not work
> 
> At this time the following should be in the *Messages* buffer:
> Error during redisplay: (jit-lock-function 1) signaled (invalid-regexp
> "Unmatched ( or \\(")
> 
> You can get the same if you add some C file and open it with c-ts-mode.
> If you open the file in normal c-mode. There are no such errors.
> 
> I do not see any errors in the regular expression - 
> "<https?://\\(github)\\.com/zevlg/telega.el/issues/\\([0-9]+\\)>".

The error is that the \( part before github is not matches by \).





  reply	other threads:[~2022-12-12 16:54 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-12-12 16:38 bug#60012: 30.0.50; bug-reference-prog-mode: Error during redisplay with tree-sitter modes Aleksandr Vityazev
2022-12-12 16:54 ` Eli Zaretskii [this message]
2022-12-12 17:07 ` bug#60012: (no subject) Aleksandr Vityazev

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=83pmcor29n.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=60012@debbugs.gnu.org \
    --cc=avityazev@posteo.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 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.