From: Eli Zaretskii <eliz@gnu.org>
To: Andrey Pudov <mail@andreypudov.com>
Cc: 64456@debbugs.gnu.org
Subject: bug#64456: Incorrect behavior of check-parens
Date: Tue, 04 Jul 2023 14:32:06 +0300 [thread overview]
Message-ID: <83sfa3lxop.fsf@gnu.org> (raw)
In-Reply-To: <AM0PR10MB2836FC25EE7732B4730627A28F29A@AM0PR10MB2836.EURPRD10.PROD.OUTLOOK.COM> (message from Andrey Pudov on Mon, 3 Jul 2023 18:41:20 +0000)
> From: Andrey Pudov <mail@andreypudov.com>
> Date: Mon, 3 Jul 2023 18:41:20 +0000
> msip_labels:
>
> The following code snippet causes a problem with check-parens:
>
> (defconst jetbrains-ligature-mode--ligatures
> '("-->" "//" "/**" "/*" "*/" "<!--" ":=" "->>" "<<-" "->" "<-"
> "<=>" "==" "!=" "<=" ">=" "=:=" "!==" "&&" "||" "..." ".."
> "|||" "///" "&&&" "===" "++" "--" "=>" "|>" "<|" "||>" "<||"
> "|||>" "<|||" ">>" "<<" "::=" "|]" "[|" "{|" "|}"
> "[<" ">]" ":?>" ":?" "/=" "[||]" "!!" "?:" "?." "::"
> "+++" "??" "###" "##" ":::" "####" ".?" "?=" "=!=" "<|>"
> "<:" ":<" ":>" ">:" "<>" "***" ";;" "/==" ".=" ".-" "__"
> "=/=" "<-<" "<<<" ">>>" "<=<" "<<=" "<==" "<==>" "==>" "=>>"
> ">=>" ">>=" ">>-" ">-" "<~>" "-<" "-<<" "=<<" "---" "<-|"
> "<=|" "/\\" "\\/" "|=>" "|~>" "<~~" "<~" "~~" "~~>" "~>"
> "<$>" "<$" "$>" "<+>" "<+" "+>" "<*>" "<*" "*>" "</>" "</" "/>"
> "<->" "..<" "~=" "~-" "-~" "~@" "^=" "-|" "_|_" "|-" "||-"
> "|=" "||=" "#{" "#[" "]#" "#(" "#?" "#_" "#_(" "#:" "#!" "#="
> "&="))
>
> An error message:
> Error { name: UnmatchedCloseParen, message: "Unmatched close-paren.", x: 37, line_no: 75,
> input_x: 37, input_line_no: 75 }
I cannot reproduce this, neither with Emacs 28.2 nor with the current
emacs-29 branch. Can you post a more detailed recipe, starting from
"emacs -Q"?
What I did:
. copied the snippet you posted to a foo.el file
. visited foo.el from 'emacs -Q"
. typed "M-x check-parens RET"
This completed without any error messages.
next prev parent reply other threads:[~2023-07-04 11:32 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-07-03 18:41 bug#64456: Incorrect behavior of check-parens Andrey Pudov
2023-07-04 11:32 ` Eli Zaretskii [this message]
2023-07-04 12:25 ` Andrey Pudov
2023-07-15 7:48 ` Eli Zaretskii
2023-07-15 8:35 ` Andrey Pudov
2023-07-15 9:01 ` Eli Zaretskii
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=83sfa3lxop.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=64456@debbugs.gnu.org \
--cc=mail@andreypudov.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 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).