From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Yuan Fu Newsgroups: gmane.emacs.devel Subject: Re: treesit: how to get it to parse multiple languages Date: Thu, 28 Nov 2024 23:37:28 -0800 Message-ID: References: <2718624.vuYhMxLoTh@fedora> <710CDA01-DA78-4C14-BE18-89D93A99120F@gmail.com> <2155916.9o76ZdvQCi@fedora> <87r06u4i91.fsf@mail.linkov.net> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3776.700.51\)) 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="23852"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Vincenzo Pupillo , emacs-devel@gnu.org, Peter Oliver , Andrew De Angelis To: Juri Linkov Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Nov 29 08:38:33 2024 Return-path: Envelope-to: ged-emacs-devel@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 1tGvaC-00064R-Uu for ged-emacs-devel@m.gmane-mx.org; Fri, 29 Nov 2024 08:38:32 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tGvZR-0006jT-4A; Fri, 29 Nov 2024 02:37:45 -0500 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 1tGvZP-0006j1-Kb for emacs-devel@gnu.org; Fri, 29 Nov 2024 02:37:43 -0500 Original-Received: from mail-pl1-x630.google.com ([2607:f8b0:4864:20::630]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tGvZN-0008Ka-Sq for emacs-devel@gnu.org; Fri, 29 Nov 2024 02:37:43 -0500 Original-Received: by mail-pl1-x630.google.com with SMTP id d9443c01a7336-212a3067b11so15230205ad.3 for ; Thu, 28 Nov 2024 23:37:41 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732865860; x=1733470660; darn=gnu.org; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=68qc9jiph3PgsTAwaQjAcCjw1ImKIKchz89ukoZhMzI=; b=A5YuSiDY2ACOT57zbCFia/ggACD4FGpj7F3B7YKYZ5UoI4ab4VrhjXjdq1oL7xGp3f RDM2Hb2LUb9BjpFTutoqZxSASCY71Ud3GeQE8+1ub+6+KXszIy9x9pUDTl3eP4+HKOa9 uR/ICr25EC02Q6X9/hiPWtmUIJ1t8jxWxpGBRdEmTFNrHTiq9cK6vj1DY4WT345RjMFG LtbhBSU/5D5IIT4LrnNarqVn+jCO5A+568vLvZakWWlaH29luqXhAMFzAl/8YMi0DB8j p9+r2atJVxvtYVqzIjKVpa4v+eYGC16K58IyEXKRaMfCjwMqxCFPExAv2av2xMIWfZ2e SQLA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732865860; x=1733470660; h=to:references:message-id:content-transfer-encoding:cc:date :in-reply-to:from:subject:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=68qc9jiph3PgsTAwaQjAcCjw1ImKIKchz89ukoZhMzI=; b=D9NlthUrX2xb6pkuj0giz3F1knl/sZcJq9SqVVmgNQE/hsXKz1YR9l+EL4CsZbc84c YWgG+4iCuAguFjXVDHwqMvUn5Whsj1VyEi197RLrL1zz/qRDeQXAe5XpmaUi4Jaf5S2b svRuD1Dk+krmKNrRnyjfRf57x/VN4HU+6JiprSu/xD128H2+0RWU7FRVi1Avvmm5aC3q A+UJVTGKAJ6TBSAer5IYlb1z93MoXN8jxPlanmaC42AIdLnjpE93YGmMx38XuUerm5bb K34CGooNSpoKKT5sSZ0TpyYz83d+EJ7Rbw/MyTWRVv9xCVm177rXhQBQdgWRngFS4G42 GUDw== X-Forwarded-Encrypted: i=1; AJvYcCXMP76NPKYfmm7PhwM0O1z7pCtgAyCSsds+5B5Exl4uU4d332HVXUmsEMHAwHHhwSFx40GhDQJNWPwkRA==@gnu.org X-Gm-Message-State: AOJu0YwWX9BOpwQ1oDc3cB1Hh7pZx7jJUaVfSKz1RPCXb0e1e7Te7JK0 sDggZ1x3F57S1x44gM7fOYszeWaXBlzmkjoamljDpv+OCU9nMYqX X-Gm-Gg: ASbGncu5v625kGMT4I/zR6i3NuZ0bwN+5F2VPRSo8/6yXl6qGvoztzv/rTzdcA3mrTp KoRNnVqVBmyLmVlJSKd1SP1NfAgnCNz2NPbWJRLCIxILzf1kYT+A4IakXuO+A+UK+VwXBFH3Lfw 6+uYoeTTfgVn271X2kGWl3q3KD8Wc/Bb/uFMXXr5KR8LciTAaBi1VrLDWureykNAoRUxb7jCaRs Ok6PNiy6pMC4ZIgthTNigW0UA1p9zfpcdmQTXIz1UaASwvg2Dy4BxNhhhJtir2lZ7Z5WD0JYA== X-Google-Smtp-Source: AGHT+IHfxqGfxdLnBpXKogJO5N+bNgk3VYG+YhaOQvuDFrHKWVh0KNxHRbB+cvc+ZW2rAwFF27eMCg== X-Received: by 2002:a17:903:41c5:b0:215:3a66:d6d1 with SMTP id d9443c01a7336-2153a66e493mr28647655ad.50.1732865860228; Thu, 28 Nov 2024 23:37:40 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:c885:af5e:9679:e419]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2154a363545sm2595985ad.187.2024.11.28.23.37.39 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Nov 2024 23:37:39 -0800 (PST) In-Reply-To: <87r06u4i91.fsf@mail.linkov.net> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::630; envelope-from=casouri@gmail.com; helo=mail-pl1-x630.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:325847 Archived-At: > On Nov 28, 2024, at 11:22=E2=80=AFPM, Juri Linkov = wrote: >=20 >>> That=E2=80=99s awesome! >>=20 >> It's pretty much ready, the only thing I'm missing is the ability to = create an=20 >> Imenu with symbols from both HTML and the other embedded languages. I = have=20 >> tried a few approaches but it seems that it can only be done for the = main=20 >> language. Is there any way to do something like that? >=20 > Imenu is a small detail that could be figured out after pushing your = main work. Oops, sorry for the late reply. Lets=E2=80=99 do this: I=E2=80=99ll = extend treesit-simple-imenu to support multi-language. Once we have that = you can add imenu support for your new mode. Yuan=