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