From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Fu Yuan Newsgroups: gmane.emacs.bugs Subject: bug#65470: 29.1.50; js-ts-mode: regex pattern can cause incorrect parenthesis matching Date: Sat, 26 Aug 2023 08:29:17 -0700 Message-ID: References: Mime-Version: 1.0 (1.0) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="18960"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 65470@debbugs.gnu.org, Theodor Thornhill , Dmitry Gutov , btuin@mailo.com, Eli Zaretskii , Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= To: Jostein =?UTF-8?Q?Kj=C3=B8nigsen?= Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Aug 26 17:30:21 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qZvEz-0004lj-EF for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 26 Aug 2023 17:30:21 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qZvEd-0004W2-0Y; Sat, 26 Aug 2023 11:29:59 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1qZvEb-0004VB-9j for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2023 11:29:57 -0400 Original-Received: from debbugs.gnu.org ([2001:470:142:5::43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZvEb-0001zt-1g for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2023 11:29:57 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1qZvEf-00029S-Tk for bug-gnu-emacs@gnu.org; Sat, 26 Aug 2023 11:30:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Fu Yuan Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 26 Aug 2023 15:30:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 65470 X-GNU-PR-Package: emacs Original-Received: via spool by 65470-submit@debbugs.gnu.org id=B65470.16930637858228 (code B ref 65470); Sat, 26 Aug 2023 15:30:01 +0000 Original-Received: (at 65470) by debbugs.gnu.org; 26 Aug 2023 15:29:45 +0000 Original-Received: from localhost ([127.0.0.1]:43322 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZvEO-00028e-OO for submit@debbugs.gnu.org; Sat, 26 Aug 2023 11:29:45 -0400 Original-Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:52677) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1qZvEJ-00028M-Sr for 65470@debbugs.gnu.org; Sat, 26 Aug 2023 11:29:43 -0400 Original-Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1bc5acc627dso13495795ad.1 for <65470@debbugs.gnu.org>; Sat, 26 Aug 2023 08:29:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1693063769; x=1693668569; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:from:to:cc:subject:date:message-id :reply-to; bh=+f92LncTZbctgmVj/JUwRxuPXHnF2iTxzurpHR62thA=; b=pJb9pKg4/UdDpdd6Wi2W6RA+dawS6CoXwNIKpFskyeEKU8H5rXhLJ7TNHFv9I13qPz hA4ei+9mpWHNVgL/YuowW9yKIqnhqzLiJ0NePEtE13hStijVw94gdzBsxEn8/b/zwxiw sAP2uDBoE06PMMAhCCe+TdReeas9I5CwxQ9T5M5DCXiW+OOAROq0YXk6DP2mUl6T5+Nx CWdZ0heRfXT/IW4e8kyOEi8dURxsf5fKbsA7sF1vZ7miTscjJdZq9Zqsq7WJ+xSIrt3u llph3z3N1bI1bbXq/AuV2uhL1tD5bOCDxqtS2qjIF+bXUPT+IjRhAm7TU57GwJ+yxGy+ 9iEQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1693063769; x=1693668569; h=to:in-reply-to:cc:references:message-id:date:subject:mime-version :from:content-transfer-encoding:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+f92LncTZbctgmVj/JUwRxuPXHnF2iTxzurpHR62thA=; b=DpIaPMVxxwc7duYpxb0qUUltlUrSyDZzX0ROht+bjIedTWPANXTOxfmyiltFKEeP4S 0e4Bj3OAaL19JpmBKyytUzw/VKaFISaxi2nRTYdItf9vJQoBASIxW/68Ka1eX6lV/VIZ fbiod/VTBFVgxqDSJtRajZjEm7t0niLhTatnfPFH9V3eS9pTejJGPJMZkbG5midkOCWL VAAV1VGh+jF2sjaAe1iGVW2kAnjCO2sWaT9Lly/kHVCf5uT+htjRGPSg7LtXuLk1J6lq WJykEZSPb+p6+7oqvNdKgKkJLNnAy//s01sTxnRdEMC6jvLpiHY2TaCumB/AkJr8G3dX Yl/A== X-Gm-Message-State: AOJu0YxfVgIowMvu4m5c8OqnOqCeLpYe8/EGmuJGh73OPRgQjUzi4aUP trBSmPsf31aMASareD168NU= X-Google-Smtp-Source: AGHT+IE65ECYv7cmLJ6i4l/eRl2JILPQxZ8H0RtIWhbXkEKQlW8bnHgPKXXnw8na5tqYjkRGKGYT0g== X-Received: by 2002:a17:903:228a:b0:1bb:2ccc:c321 with SMTP id b10-20020a170903228a00b001bb2cccc321mr21425836plh.48.1693063768636; Sat, 26 Aug 2023 08:29:28 -0700 (PDT) Original-Received: from smtpclient.apple (cpe-172-117-161-177.socal.res.rr.com. [172.117.161.177]) by smtp.gmail.com with ESMTPSA id ju14-20020a170903428e00b001b672af624esm3863625plb.164.2023.08.26.08.29.28 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 26 Aug 2023 08:29:28 -0700 (PDT) In-Reply-To: X-Mailer: iPhone Mail (20G75) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:268514 Archived-At: >>=20 >>>> On Aug 24, 2023, at 11:59 PM, Jostein Kj=C3=B8nigsen wrote: >>>>=20 >>>>=20 >>>>=20 >>>>> On 24 Aug 2023, at 21:47, Theodor Thornhill wrote:= >>>>=20 >>>> Eli Zaretskii writes: >>>>=20 >>>>>=20 >>>>> Would someone please add syntax-propertize-function in modes that need= >>>>> it? I think this should be done on the emacs-29 branch. >>>>>=20 >>>>> TIA >>>>=20 >>>> I'll add it to my list, but if someone will grab it that's fine, as I'm= >>>> a little short on time the next couple of weeks :-( >>>>=20 >>>> Theo >>>=20 >>> I=E2=80=99ve just been forced over to a Mac at work, and I can=E2=80=99t= (yet) for the life of me figure out how to build Emacs from source on this p= latform. It seems Emacs is not picking up libraries I=E2=80=99ve installed u= sing homebrew? >>>=20 >>> If anyone can help me get past this roadblock, I might be able to get a p= atch going. (It=E2=80=99s a ARM-based Mac, if that matters.) >>=20 >> It=E2=80=99s been quite a while since I needed to setup this, so I don=E2= =80=99t quite remember. But setting LD_LIBRARY_PATH (Homebrew=E2=80=99s path= ) and PKG_CONFIG_PATH (/usr/local/lib/pkgconfig) should help the build proce= ss and Emacs find the libraries. >>=20 >> Yuan >=20 > I figured it out in the end. For anyone suffering a similar problem: >=20 > I had all packages I needed installed, but not pkg-config, leading configu= re not being able to locate any of them.=20 >=20 > Installing pkg-config too and running =E2=80=9Cmake bootstrap=E2=80=9D got= me a working build.=20 >=20 > With that out of the way, I=E2=80=99ll see if I can come up with some patc= hes for the typescript ts-modes sometime the next week.=20 Good to hear that! Exiles you are at it, could you also have a look at JSX? I= think the latest tree-sitter grammar breaks some queries. Yuan=