From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on starla X-Spam-Level: X-Spam-Status: No, score=-1.1 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,SPF_HELO_PASS,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Received: from nue.mailmanlists.eu (nue.mailmanlists.eu [IPv6:2a01:4f8:1c0c:6b10::1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by dcvr.yhbt.net (Postfix) with ESMTPS id 2D7751F44D for ; Tue, 20 Feb 2024 12:00:58 +0000 (UTC) Received: from nue.mailmanlists.eu (localhost [127.0.0.1]) by nue.mailmanlists.eu (Postfix) with ESMTP id C3A6D82B61; Tue, 20 Feb 2024 12:00:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ml.ruby-lang.org; s=mail; t=1708430451; bh=mHQ0LE0wIF/D/rUQHFRVHPjOxKHjPmYt/PjN7YoTCHE=; h=Date:References:To:Reply-To:Subject:List-Id:List-Archive: List-Help:List-Owner:List-Post:List-Subscribe:List-Unsubscribe: From:Cc:From; b=T8xbQdgeHNE5NxnCdwdNfRafKUq6wHmDsnZAhbrJG180jeYqa3oGFWK5TkVk+iQRs NC82X8Oy7uVmFw/9tHeCRUJsb46Q0TXDIF/iKIs4sqB32xE1AnmGVgimIwU1dFAvrE W1KoV5+jlxo9b3d0nzaOYG6sI+nwOz8MBWvSZha4= Received: from s.csnrwnwx.outbound-mail.sendgrid.net (s.csnrwnwx.outbound-mail.sendgrid.net [198.37.146.154]) by nue.mailmanlists.eu (Postfix) with ESMTPS id B98A182A40 for ; Tue, 20 Feb 2024 12:00:48 +0000 (UTC) Authentication-Results: nue.mailmanlists.eu; dkim=pass (2048-bit key; unprotected) header.d=ruby-lang.org header.i=@ruby-lang.org header.a=rsa-sha256 header.s=s1 header.b=AV9O7UX/; dkim-atps=neutral DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ruby-lang.org; h=from:references:subject:mime-version:content-type: content-transfer-encoding:list-id:to:cc:content-type:from:subject:to; s=s1; bh=4a9L3FGPDuiKtTQ8reF3QYwBBFfsQU+RvsSkJPW/aP0=; b=AV9O7UX/aMJ8aGR4Mjlj+1eFWLXQCMTfTAMWUFjp+pRI1Km71TQ9/1F1Uic8P2s6erUf YSqDpzB9n58uxaOHlfseBVQwsQRdEiQVQ4BhF6fboVmqAoyFIle0joV3ZhDdoWELVr7U7i 6RhLocEiDCULSXIl8eSTQaheyxZL1goE1538bzZPT5MG+v1dy3eSwtU4XnP+E2G0PUtEJw TDJcMpJHAULh6p3XXgtF+zbmg06lI7Cv/Mc8QcITd9lGUu3IbZsoGGxSn/gV2ceulmzWSd OIMXnCXFHFoc+CQKpRD5lCWrOOxjUNdxzXo5BifBfSbnU9o5PRI3BkrycwzVNR+w== Received: by filterdrecv-656b5b4c75-6h76l with SMTP id filterdrecv-656b5b4c75-6h76l-1-65D4946E-40 2024-02-20 12:00:46.71051218 +0000 UTC m=+2238212.279258828 Received: from herokuapp.com (unknown) by geopod-ismtpd-22 (SG) with ESMTP id IuVC4LN0Sgyq44LGbaPyjw for ; Tue, 20 Feb 2024 12:00:46.629 +0000 (UTC) Date: Tue, 20 Feb 2024 12:00:46 +0000 (UTC) Message-ID: References: Mime-Version: 1.0 X-Redmine-Project: ruby-master X-Redmine-Issue-Tracker: Bug X-Redmine-Issue-Id: 18988 X-Redmine-Issue-Author: tompng X-Redmine-Sender: yui-knk X-Mailer: Redmine X-Redmine-Host: bugs.ruby-lang.org X-Redmine-Site: Ruby Issue Tracking System X-Auto-Response-Suppress: All Auto-Submitted: auto-generated X-Redmine-MailingListIntegration-Message-Ids: 93434 X-SG-EID: =?us-ascii?Q?yejtU00uE+kMAY1kLl=2FTgbgT2opbthXbJnM1Rr55v0RtGrpSob0363Mab+Sb=2FW?= =?us-ascii?Q?cx9FZMp3yQyQbNJgDMwCInM5wC7pZVsy8bO3YA3?= =?us-ascii?Q?DU7LrFEM1apkMrBvDt95CGBaHCChYM5BF5qn4eF?= =?us-ascii?Q?T8QqeeDnHTjYdK05Xww5Plk9YpsVtLFNCcYXqzq?= =?us-ascii?Q?rRypTH06xw37rXyjBOcPzDE=2F4EIwsJWARIssf6k?= =?us-ascii?Q?36Duv8=2F7M2KLHzyBoKGRzYpl9R8P57VhFwBXSAJ?= =?us-ascii?Q?FVmRp41Fwp1KSieNalCkw=3D=3D?= To: ruby-core@ml.ruby-lang.org X-Entity-ID: b/2+PoftWZ6GuOu3b0IycA== Message-ID-Hash: SI6XLANQXAEOBR3GHWMBBQB76BUEEG6I X-Message-ID-Hash: SI6XLANQXAEOBR3GHWMBBQB76BUEEG6I X-MailFrom: bounces+313651-b711-ruby-core=ml.ruby-lang.org@em5188.ruby-lang.org X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.3 Precedence: list Reply-To: Ruby developers Subject: [ruby-core:116878] [Ruby master Bug#18988] Ripper cannot parse some code that has regexp named capture List-Id: Ruby developers Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: From: "yui-knk (Kaneko Yuichiro) via ruby-core" Cc: "yui-knk (Kaneko Yuichiro)" Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Issue #18988 has been updated by yui-knk (Kaneko Yuichiro). Status changed from Open to Closed This is solved by https://bugs.ruby-lang.org/issues/20257 (https://github.com/ruby/ruby/pull/9923). ---------------------------------------- Bug #18988: Ripper cannot parse some code that has regexp named capture https://bugs.ruby-lang.org/issues/18988#change-106913 * Author: tompng (tomoya ishida) * Status: Closed * Priority: Normal * ruby -v: ruby 3.2.0dev (2022-08-29T15:47:09Z :detached: cd7506593a) [x86_64-linux] * Backport: 2.7: UNKNOWN, 3.0: UNKNOWN, 3.1: UNKNOWN ---------------------------------------- Ripper does not seems to recognize regexp named capture defining new local variables, fails to parse some code. ~~~ruby requie 'ripper' # expect syntax ok, got syntax error Ripper.sexp("/(?)/ =~ ''; x = a **a, a if false") # expect syntax error, got syntax ok Ripper.sexp("/(?)/ =~ ''; x = a **a, **a if false") # "exit" is a method call, got string_literal Ripper.sexp("/(?)/ =~ ''; a %(exit)") ~~~ -- https://bugs.ruby-lang.org/ ______________________________________________ ruby-core mailing list -- ruby-core@ml.ruby-lang.org To unsubscribe send an email to ruby-core-leave@ml.ruby-lang.org ruby-core info -- https://ml.ruby-lang.org/mailman3/postorius/lists/ruby-core.ml.ruby-lang.org/