bug-gnu-emacs
[Top][All Lists]
Advanced

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

bug#64456: Incorrect behavior of check-parens


From: Eli Zaretskii
Subject: bug#64456: Incorrect behavior of check-parens
Date: Tue, 04 Jul 2023 14:32:06 +0300

> 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.





reply via email to

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