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: Tree-sitter api Date: Thu, 21 Apr 2022 19:54:40 -0700 Message-ID: <3560D8FB-9D85-4A04-B6CE-811A6D793B59@gmail.com> References: <83pmplq9f3.fsf@gnu.org> <5B304D80-2969-4F59-9A90-412D0A284912@gmail.com> <83ilvbpsvl.fsf@gnu.org> <4A6F417A-EF74-40B6-9517-6C0947AB87A6@gmail.com> <83wnjmiork.fsf@gnu.org> <6D1CD758-2C6F-4843-9739-F2A5D5591648@gmail.com> <67183EAB-5D98-4211-B71B-4618D6266A15@gmail.com> <83lews90ft.fsf@gnu.org> <8D3019A6-83EE-42AB-ADFA-7DA6EBB179B3@gmail.com> <83r16h5npi.fsf@gnu.org> <83v8vs4rd9.fsf@gnu.org> <983C9314-B31C-4785-B075-892CDD883DA2@gmail.com> <877d858fj5.fsf@gmail.com> <5D490FCF-7727-44EE-A153-A95C5F572FC4@gmail.com> <87y1zzseaa.fsf@thornhill.no> <838rrzrnp2.fsf@gnu.org> <871qxq8y5y.fsf@gnus.org> <87wnfi1vtm.fsf@thornhill.no> Mime-Version: 1.0 (Mac OS X Mail 16.0 \(3696.80.82.1.1\)) 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="37340"; mail-complaints-to="usenet@ciao.gmane.io" Cc: Lars Ingebrigtsen , Eli Zaretskii , emacs-devel@gnu.org To: Theodor Thornhill Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Fri Apr 22 04:56:03 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 1nhjSk-0009Zf-Fx for ged-emacs-devel@m.gmane-mx.org; Fri, 22 Apr 2022 04:56:02 +0200 Original-Received: from localhost ([::1]:55164 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nhjSj-0000FN-2b for ged-emacs-devel@m.gmane-mx.org; Thu, 21 Apr 2022 22:56:01 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:47726) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nhjRV-0006uw-PZ for emacs-devel@gnu.org; Thu, 21 Apr 2022 22:54:47 -0400 Original-Received: from mail-pl1-x635.google.com ([2607:f8b0:4864:20::635]:43540) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1nhjRU-0006rU-BK; Thu, 21 Apr 2022 22:54:45 -0400 Original-Received: by mail-pl1-x635.google.com with SMTP id d15so7861157pll.10; Thu, 21 Apr 2022 19:54:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8rVXSUpUKn+F/kUlfD4oddHaWRPE7QlJDxWRvbivOdI=; b=N5B5WbVsAFZWSGumbRFyiNWSZeccUaymsX2C/eHp0rtn91ba/gioQ/sz7HIstq8Ybr vWj+NPWo8VCirx+IBnHjpGabqjvQ5AoaYfBRR3+Sh68vLujggn+3EvuTrYvoxizSPgmM 6Elw4nHFfiRpUYJxna25RBCIkTwPL0sOJh5Yo/rC1NcORmHjmVvzK8++F9ufcCIqyTKX atuiyM8EL0kdTFzlcMlNhB0hoY9WyQyWUYnO0QwrLsN39kZktAk/L1v3dvJcfJJuL0ri dmLUNtBJLMJm5mhYjS423Q6SvIMSRKylt6T51utf3ozKrWskH1lpPYLZyFGHyQVHrafD x3tw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=8rVXSUpUKn+F/kUlfD4oddHaWRPE7QlJDxWRvbivOdI=; b=0MaM26Et20KnExGnqjTiZUZ5ogMl008o3j5dwiTRlzNPzThGx1pRglo4YEQYrqANM9 l04bf5SWK6kw6O6RFA52GoPh76sMST4JPLJTC+kPe0tRwliNGvXLwWMLurVPxCOExiRo HpZZ/7JTZ1R+c6mOs6r3cRCIw4uTun5HR2xJJtmy87zrT2Cfo/gAzSMTcWG8xBx11r4c aUo1mumqh134PgzguaEq9RZg+tDRPEQh7Oxn083DtrfGNyQgp9+uEdwNfcUATS+c5imi S+xjwDlJDqe60+UABhhDmmvmJtjo6aPXgwwctfbg/HBBfXOCMdioj2xGh/6H7LNJqLLo cjrg== X-Gm-Message-State: AOAM531WSxmPp7GrfP9huWTu93kdsy6eCciqgtBKXDd2YOoojwWDLJAQ G5WzQNH9eJzdS4V1BiubZQXmW/wg9a4= X-Google-Smtp-Source: ABdhPJyxwPo4cu742+Op/EnVDI9GYD/4JCXIoChDHxMp8ndlSkieygHh/DZr+z2ZE3gXzlI31WfcFQ== X-Received: by 2002:a17:90a:8d82:b0:1d2:cd8c:ed6 with SMTP id d2-20020a17090a8d8200b001d2cd8c0ed6mr2925082pjo.63.1650596082265; Thu, 21 Apr 2022 19:54:42 -0700 (PDT) Original-Received: from smtpclient.apple ([2600:1700:2ec7:8c90:3c5f:289e:2027:573d]) by smtp.gmail.com with ESMTPSA id d8-20020aa78688000000b00505793566f7sm480045pfo.211.2022.04.21.19.54.40 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 21 Apr 2022 19:54:41 -0700 (PDT) In-Reply-To: <87wnfi1vtm.fsf@thornhill.no> X-Mailer: Apple Mail (2.3696.80.82.1.1) Received-SPF: pass client-ip=2607:f8b0:4864:20::635; envelope-from=casouri@gmail.com; helo=mail-pl1-x635.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, T_SCC_BODY_TEXT_LINE=-0.01 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" Xref: news.gmane.io gmane.emacs.devel:288783 Archived-At: >=20 > Great! I've started work on using tree-sitter provided by Yuan Fu in > typescript-mode, and it is working rather well. I'm struggling a = little > with indentation, but I'm sure it's user error. I=E2=80=99d love to know how are you struggling, because ideally we=E2=80=99= d want the indentation engine to be very easy to understand and use. = Maybe we can improve the documentation or something? >=20 > Making a feature branch for this would indeed help a _lot_ as setup > right now is very finicky. I'll report back any bugs I can find while > digging. So you think there can be any improvements in this regard? (Except for = moving to a feature branch, of course, that=E2=80=99s already on the = list.) Yuan=