From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#71380: 30.0.50; Submitting php-ts-mode, new major mode for php Date: Fri, 07 Jun 2024 14:12:25 +0300 Message-ID: <86ed99f1ly.fsf@gnu.org> References: <3686989.dWV9SEqChM@3-191.divsi.unimi.it> <86cyouimm4.fsf@gnu.org> <2137654.9o76ZdvQCi@3-191.divsi.unimi.it> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="36352"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 71380@debbugs.gnu.org To: Vincenzo Pupillo Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Fri Jun 07 13:43:14 2024 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 1sFY01-0009EH-Om for geb-bug-gnu-emacs@m.gmane-mx.org; Fri, 07 Jun 2024 13:43:13 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sFXzh-0007dt-Ed; Fri, 07 Jun 2024 07:42:53 -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 1sFXzc-0007cd-AQ for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 07:42:48 -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 1sFXzc-00060k-25 for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 07:42:48 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1sFXzq-0001Zs-QE for bug-gnu-emacs@gnu.org; Fri, 07 Jun 2024 07:43:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 07 Jun 2024 11:43:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 71380 X-GNU-PR-Package: emacs Original-Received: via spool by 71380-submit@debbugs.gnu.org id=B71380.17177605786033 (code B ref 71380); Fri, 07 Jun 2024 11:43:02 +0000 Original-Received: (at 71380) by debbugs.gnu.org; 7 Jun 2024 11:42:58 +0000 Original-Received: from localhost ([127.0.0.1]:49633 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFXzm-0001Z9-Dt for submit@debbugs.gnu.org; Fri, 07 Jun 2024 07:42:58 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:37742) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1sFXzi-0001YS-Ja for 71380@debbugs.gnu.org; Fri, 07 Jun 2024 07:42:54 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sFXWK-0000QT-Kf; Fri, 07 Jun 2024 07:12:32 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=CsmXoGc0oyfYw5QK/sQnowOoWqs81Yg+Rx/xyuznBHE=; b=pNajNPn+tgkC o8mRy2X744bU8EXIdueK8W7tgQAhRSMOp3QAHFWyQBsuVwelP1jZ4l1X7KL/+sTCeSrgAnNO7pOFa +yBn0mp0ZgwmOYWLe0YAX43EptNBY9AFkNa5It3TSWQSKST/7lQcssYlcWSq+Ap55nwrR9mo8+dBO cu3iPA2S8tOdYmVFoC1UKuRPwzroX5gGt84PIu6QxrYWtTi91f2p8z7cTIDlBYfVT6CoCMsbSWves bL+fi/ZKnTuV5CwyI/G9LbQTx30ZI17Ta1pOpqXPHlL+hATRH5EAzPER4pMcSfsBNUyutUb9hd2pC ZsGfG6PajoInOmFitHyfwg==; In-Reply-To: <2137654.9o76ZdvQCi@3-191.divsi.unimi.it> (message from Vincenzo Pupillo on Fri, 07 Jun 2024 12:45:05 +0200) 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:286760 Archived-At: > From: Vincenzo Pupillo > Cc: 71380@debbugs.gnu.org > Date: Fri, 07 Jun 2024 12:45:05 +0200 > > > > +(defun php-ts-mode--array-element-heuristic (node parent bol &rest _) > > > + "Return of the position of the first element of the array. > > > > The "of" part should be deleted here, I think. > > > I'm not sure how to explain it. Different indentation styles indent the > elements of an array differently when written on multiple rows. For example. > in PSR2 it is like this: > $a = array("a" => 1, > "b" => 2, > "c" => 3); > while with Zend it is like this: > $a = array("a" => 1, > "b" => 2, > "c" => 3); > What do you suggest? What does the function return in each of these two cases?