From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Po Lu Newsgroups: gmane.emacs.devel Subject: Re: Implementation direction for shell-script-mode with tree-sitter Date: Thu, 27 Oct 2022 08:54:01 +0800 Message-ID: <87tu3q6q8m.fsf@yahoo.com> References: <87mt9j1k50.fsf@yahoo.com> Mime-Version: 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="32422"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Cc: emacs-devel@gnu.org, Yuan Fu , Theodor Thornhill , Eli Zaretskii To: =?utf-8?Q?Jo=C3=A3o?= Paulo Labegalini de Carvalho Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Thu Oct 27 02:55:12 2022 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 1onrAt-0008E7-Up for ged-emacs-devel@m.gmane-mx.org; Thu, 27 Oct 2022 02:55:11 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1onrA4-00072W-42; Wed, 26 Oct 2022 20:54:20 -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 1onrA2-0006jD-GK for emacs-devel@gnu.org; Wed, 26 Oct 2022 20:54:18 -0400 Original-Received: from sonic309-22.consmr.mail.ne1.yahoo.com ([66.163.184.148]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1onr9z-0001z5-PC for emacs-devel@gnu.org; Wed, 26 Oct 2022 20:54:18 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666832051; bh=xZwZWrd7cC6zvFLXU5XlaYa0Uo8UGNeenEg5ZGwQS04=; h=From:To:Cc:Subject:In-Reply-To:References:Date:From:Subject:Reply-To; b=CmuPc+d+IsZVgpvrjBciflrweX1189HsFGN+SaQ5pUoCTer8QUECNO5Rg1w2vWJdJZsdLxnlLem/WeRvLLBzQNFIunM4p3MjL5RbiXjFiOEjSWbFs5V0Bi0QyIMAprVhDYS9X899TUzKSyt0xEqJLwBhAHX1iw/2lSd2NEaMSW6ttm6Wv5iiWzlcSfZWLAi7Oecv7NOCQkMVxqaTG/mp13YCY4+EMXxi/yufcKL9jWPeWGNXHkqcFjtDRMh9KmhIxBglDTIRUmSu08No5/aVyXqPiYod+AX9WE7/Z61Naylp0+Ff6rVqP9IxAFM8SL8DxWSWgoPugq4nN/xMgKmQ1Q== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1666832051; bh=wRSG6H922/M8vK1Neb45PEMRNGa+TSUl9AmHblayims=; h=X-Sonic-MF:From:To:Subject:Date:From:Subject; b=doAAVz1lXEwRHgHOCJRCvSaZ9zIa4UMsUwZZLDaLutA2W+y+ma0cFHJ2QukJNSKyhiuMgpRg2DN5F4yGbfCG/vLp9rBltmzQotWOqZFNoF0KGVEJdyj0Qp7lziNOASOJsv/ZjCMhvKfu0SPjur50zQUtKAVLseNz0d+CEvN6wn/SfqB/DhjsLwSF8P8XFoxsy1IWcSBqSq+nJ3ftgRGYM7Uc7b0GWLuiqdrregQzzSF/d019OQZ3ikj+vkrSr6dEh0GAyATZA/s2Nx04p9R1ymCjggcw9U9J5hmX34unCZplNpIKQhJRHjdTkdatqaYt3xVk1BHUFFx5OKQnWOdgWQ== X-YMail-OSG: gmI9g9EVM1n7Vu0eFuLpwWumCO2ySc58.VwY_Ghs9PTOOewbjDCK80wEpd8006. KMHyvOIWmgad4oIuNeCbwrnUVdFaAR.ia5ArYLP_WHM0pZpto0u.V4Dt_OAzuc4AySRbgYYQcJRt 71HPurXshe9wJ6VuJcgIF6N1ROUqzEOr1tq92lkgsOUZwtOn1R6CqSjKLO_NTzCkEWgkMKMdh_sZ 1uvH_CinsCNkbZZp.jFDwMFR26ikQTDl9EkKmVK6r4pzCKs.8tFsPyCMThXsA7wAdNE6oCDrDE2O qkLUtiXu3g.3hnoZCEF9LCr8SNVKfcXwWGfD4lwufZzh6BIRjSVwJTm17eGcsdPw7eDCGkJK10Re h4_TRmYbMMr52Evp2HBmf6UX.HWvsmHLfdA8_M50qp9ldBQY_xTVHJ9mtXpvA.aaAggcCOQcCkM6 jqNUeBUT628AIoo0sR8.b_oohS2YvdW88qJ5rTq.Ywfs1xvSRX6qAlTGIb2_zu2EVCLsGbcIzrqt 4PjFZIbphXzDV8U7BenH5yEaTktm2h06PgIB6DI2e0aFJHNEg8HzX1dKXmzpVVs7BA3GOTPUAw0v gEtYmFWP9g4Px6jZDCYGH0X9PbXQTiJ4y5_JrJ2yZivE6Optre24aq2yBEuBVjZ.ztowEdJa7YnL ruu0gXOCEVL1cBs8g6lXweSJ_pNuaQB2CXL8vg9SPo40XuCDzUbSXIK1ChiNKluP8d2NFCF3kSnK JQgQziMXgwEZ8eTDKYAZ_.murtC.lVhHqffvbCK_NCdzkSl4F2pPt_h.a8QWG7M4ATaamzmVlRmD vQAUJDH7TmrkWIRPD93LRvRyet4OOed1KJW3RmFmZR X-Sonic-MF: Original-Received: from sonic.gate.mail.ne1.yahoo.com by sonic309.consmr.mail.ne1.yahoo.com with HTTP; Thu, 27 Oct 2022 00:54:11 +0000 Original-Received: by hermes--production-sg3-74fb94585-6k8mp (Yahoo Inc. Hermes SMTP Server) with ESMTPA ID a5dd469d39fd9e1df88d5f403b6c2b5a; Thu, 27 Oct 2022 00:54:07 +0000 (UTC) In-Reply-To: (=?utf-8?Q?=22Jo=C3=A3o?= Paulo Labegalini de Carvalho"'s message of "Wed, 26 Oct 2022 09:48:10 -0600") X-Mailer: WebService/1.1.20783 mail.backend.jedi.jws.acl:role.jedi.acl.token.atz.jws.hermes.yahoo Received-SPF: pass client-ip=66.163.184.148; envelope-from=luangruo@yahoo.com; helo=sonic309-22.consmr.mail.ne1.yahoo.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, RCVD_IN_MSPIKE_H2=-0.001, 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: , Original-Sender: "Emacs-devel" Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:298591 Archived-At: Jo=C3=A3o Paulo Labegalini de Carvalho writes: > That is a very good point and that is the reason why I am pursuing an > implementation that reuses the work from the existing fontification > code. Some shells, such as csh, are very syntactically different from bash. > My goal is to use the `sh-feature' function to retrieve everything > that needs to be fontified for the buffer's shell variant. So won't you end up, in effect, reproducing the existing font-lock code?