From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: John Darrington Newsgroups: gmane.emacs.devel,gmane.comp.statistics.pspp.devel Subject: Re: Fwd: [ELPA] New package: pspp-mode.el for PSPP/SPSS syntax highlighting Date: Sun, 5 Jul 2020 08:06:38 +0200 Message-ID: <20200705060638.GA17172@jocasta.intra> References: <4836167B-33A9-46A3-B586-20768E333E1D@gmx.de> <20200704151535.GA31917@jocasta.intra> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="31809"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Mutt/1.10.1 (2018-07-13) Cc: Friedrich Beckmann , emacs-devel@gnu.org, John Darrington , mail@vasilij.de, PSPP Development Mailing List To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 05 10:27:22 2020 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 1jrzzd-0008BS-Ny for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 10:27:21 +0200 Original-Received: from localhost ([::1]:53234 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jrzzc-0000kV-Pq for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 04:27:20 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:45386) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrxnd-0000HF-C7; Sun, 05 Jul 2020 02:06:49 -0400 Original-Received: from de.cellform.com ([88.217.224.109]:48588 helo=jocasta.intra) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jrxnb-0002zd-3a; Sun, 05 Jul 2020 02:06:48 -0400 Original-Received: from jocasta.intra (localhost [127.0.0.1]) by jocasta.intra (8.15.2/8.15.2/Debian-14~deb10u1) with ESMTPS id 06566dKM017453 (version=TLSv1.3 cipher=TLS_AES_256_GCM_SHA384 bits=256 verify=NOT); Sun, 5 Jul 2020 08:06:39 +0200 Original-Received: (from john@localhost) by jocasta.intra (8.15.2/8.15.2/Submit) id 06566cYY017452; Sun, 5 Jul 2020 08:06:38 +0200 Content-Disposition: inline In-Reply-To: Received-SPF: pass client-ip=88.217.224.109; envelope-from=john@darrington.wattle.id.au; helo=jocasta.intra X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/05 02:06:43 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sun, 05 Jul 2020 04:26:49 -0400 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.23 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:252689 gmane.comp.statistics.pspp.devel:7573 Archived-At: On Sat, Jul 04, 2020 at 06:45:56PM -0400, Stefan Monnier wrote: Hi John, But the main issue is the comment syntax. I'm trying to handle them right using `syntax-propertize`, but the patch can't handle the t-test-sps I found in PSPP's Git. I don't understand what the real syntax should be. The doc seems to suggest that comments start with `*` or `comment` (in the position of the beginning of a command?) and end with a `.` at an end of line or with an empty line, but in t-test.sps I see: * Females have gender 0 * Create 8 female cases loop #i = 1 to 8. where the comment does not seem to be terminated (neither by a `.` nor by an empty line). What am I missing? I think the docs are misleading here. As I understand the rules: COMMENT at the start of a line (optionally preceded by whitespace) begins a comment. * at the start of a line (optionally preceded by whitespace) begins a comment. In general, comments are terminated by the end of a line. Maybe Ben could say for sure? Unfortunately, the spss syntax is poorly formed, poorly documented and highly irregular. It was kindof bodged together in the 1960s and we've been stuck with it since. J'