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: Sat, 23 Nov 2024 21:09:39 -0800 Message-ID: <710CDA01-DA78-4C14-BE18-89D93A99120F@gmail.com> References: <87h68dvaca.fsf@mail.linkov.net> <7B1579B0-BD87-4DB8-86B6-7139558AF2EF@gmail.com> <2718624.vuYhMxLoTh@fedora> 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="1281"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Juri Linkov , emacs-devel@gnu.org, Peter Oliver , Andrew De Angelis To: Vincenzo Pupillo Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Nov 24 06:10:41 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 1tF4tN-0000D5-M5 for ged-emacs-devel@m.gmane-mx.org; Sun, 24 Nov 2024 06:10:41 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tF4se-0001Qu-9g; Sun, 24 Nov 2024 00:09:56 -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 1tF4sc-0001Qi-RL for emacs-devel@gnu.org; Sun, 24 Nov 2024 00:09:54 -0500 Original-Received: from mail-pf1-x434.google.com ([2607:f8b0:4864:20::434]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tF4sb-0001Lg-0i for emacs-devel@gnu.org; Sun, 24 Nov 2024 00:09:54 -0500 Original-Received: by mail-pf1-x434.google.com with SMTP id d2e1a72fcca58-724e14b90cfso1569819b3a.2 for ; Sat, 23 Nov 2024 21:09:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1732424991; x=1733029791; 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=aShNcD4mUBuOrP4646GZUhhpe+0tUr6XAW27SlxgRIk=; b=H6q8Q3z0c4g1tKMRF0RqQ917sqXT3/4vbkhx8Hkb3Y7ddbylzXwjR1oWoMA1HyvvN+ V9uPx28MRof8pFsEqAVzr9vbSsSDFx1AH6iKGUs+3JVIm7B3DXCI/PdmkkFbRq5jZQW7 WomfpgImEM2EKUGC6+GniVkVKcnSFe8vTKp0LzuYkfRpzt3/F4YB3iYjcred9rUjF11w v4m2CY7xHaInvBmQ6DH7oUDCxMKQf6T87hvuBtFB54LBsOEr3hheEjsZqukjNVszaQeO c4esx6kfbNIKI7PrGJGEUSWUBxOBqQCCRuLlscuXR8AOOrk3kFQfenTx45OakxyPsNN0 VgUg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1732424991; x=1733029791; 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=aShNcD4mUBuOrP4646GZUhhpe+0tUr6XAW27SlxgRIk=; b=XJ3kULYh/dMgN2HL8mU1dBeEJBvT9mWj1zDjtZn1pXcavLpJDqPPaP36YELIvqCXiw 2JKO2dKiOgbJFSFdbOAqYstSD78ZtvSock1YUInbMcmtnJnTM+vLKzDBslTtheQf69bJ Kevng3WifqQkeIraGtvaYrfayw0BFD3XFjVLIjV/o7dgoRvtunuRnSjFuGzKX8FeTKvZ mV3IG1mYPf3MzZ/YJZjlnKciy/KR//K9uhRsrxFjcmEqtawRsDVi9Uqs4ivspiRrjh6I GYZ5gyu0ozL9t/TV6lwIJV6ccEPnhFmbhAjs7fvLsb7TdiH2AplB+xiVuK6SbQN2lhO2 8hDw== X-Forwarded-Encrypted: i=1; AJvYcCVu7e10QJ6tslOSH7wY28MuJ1o5lKQmkttIYmbTFuqKbJtgAd6RCZ9bRJuylX0la8ue7xdw3hB4jPgwFw==@gnu.org X-Gm-Message-State: AOJu0YwU4m2pxEzZZqyUvQIr5Td8vr398Iyx+vvO1uNpjUAZtySJcQRk rEMMllPkeofrOD0m6RLjtGgbzyhK/KObtPPqLTfIbBuUPN9aK/Y0 X-Gm-Gg: ASbGnctQ4Y+natfAQXKnBvZqqQjUbJlaeaeBFDlErItxRPmdpdzdp74UG1P5WVNmYQz 1TxLian2jrbYBVKopDywEMR1EsbsZuGVeW8fiEmMG19krJbBnFHK+BCgetkeIZavEOzDiqXnyi3 rBzuyBMh+9r+8PkYym3OAYYPRNcsXwShgh8wq3EspmAxG/Fe0qhHWQU9YTr9g6KnNfCN0Vk5SyZ xG12WzZQI9d0B7aPxWvHHOopBttKd76TT2ArZ4ibqx+TroMsbJP9JkNj0urs1I0Pc+vMIjIYw== X-Google-Smtp-Source: AGHT+IHVsvKcGTtWQ1IQuPt4WzatrBAglrMm5kdsWkczIayiq06wdZbEHX0JUBCp2z0y2Kms6WKWsg== X-Received: by 2002:a17:902:f605:b0:212:536a:57b0 with SMTP id d9443c01a7336-2129fd7fc07mr123133355ad.54.1732424991388; Sat, 23 Nov 2024 21:09:51 -0800 (PST) Original-Received: from smtpclient.apple ([2601:646:8f81:6120:9db4:d34c:247c:f36b]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-2129db8d449sm40593235ad.28.2024.11.23.21.09.50 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 23 Nov 2024 21:09:50 -0800 (PST) In-Reply-To: <2718624.vuYhMxLoTh@fedora> X-Mailer: Apple Mail (2.3776.700.51) Received-SPF: pass client-ip=2607:f8b0:4864:20::434; envelope-from=casouri@gmail.com; helo=mail-pf1-x434.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:325646 Archived-At: > On Nov 19, 2024, at 12:13=E2=80=AFPM, Vincenzo Pupillo = wrote: >=20 > In data marted=C3=AC 19 novembre 2024 08:01:28 Ora standard = dell=E2=80=99Europa centrale,=20 > Yuan Fu ha scritto: >>> On Nov 11, 2024, at 11:28=E2=80=AFAM, Juri Linkov = wrote: >>>>> a major mode out >>>>> there that already implements multiple-language functionalities = using >>>>> treesitter. >>>>>=20 >>>>> =E2=80=A6 >>>>>=20 >>>>> Do you all know if such a mode exists? >>>>=20 >>>> In Emacs 30, php-ts-mode? >>>>=20 >>>> = https://git.savannah.gnu.org/cgit/emacs.git/tree/lisp/progmodes/php-ts-mo >>>> de.el>=20 >>> It would be nice if html-ts-mode supported embedded css-ts-mode and >>> js-ts-mode the same way. >>=20 >> Yeah, it can be a good poster child for writing multi-lang modes. My = time is >> very limited now, so anybody sees this, feel free to give it a try. = And >> maybe document the code extensively too ;-) >=20 > It's almost done (it's called mhtml-ts-mode), I hope to submit a patch = within=20 > the next week. >=20 > Vincenzo That=E2=80=99s awesome! Yuan=20=