From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Ben Pfaff 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 10:17:41 -0700 Message-ID: References: <4836167B-33A9-46A3-B586-20768E333E1D@gmx.de> <20200704151535.GA31917@jocasta.intra> <20200705060638.GA17172@jocasta.intra> 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="20627"; mail-complaints-to="usenet@ciao.gmane.io" 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 19:26:32 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 1js8PP-0005FE-PJ for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 19:26:31 +0200 Original-Received: from localhost ([::1]:51870 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1js8PO-0006Ya-NB for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 13:26:30 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:35974) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1js8H8-0003dc-1x; Sun, 05 Jul 2020 13:17:58 -0400 Original-Received: from smtp2.cs.stanford.edu ([171.64.64.26]:43226) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1js8H6-00006Z-BJ; Sun, 05 Jul 2020 13:17:57 -0400 Original-Received: from mail-io1-f54.google.com ([209.85.166.54]:42016) by smtp2.cs.Stanford.EDU with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92.3) (envelope-from ) id 1js8H3-0004ig-VH; Sun, 05 Jul 2020 10:17:54 -0700 Original-Received: by mail-io1-f54.google.com with SMTP id c16so37023562ioi.9; Sun, 05 Jul 2020 10:17:53 -0700 (PDT) X-Gm-Message-State: AOAM531TGwUUaXJJ5N7jeu3A8c/VsTm1KwVnWfaXgaRQPu83V0rp3/Q0 JvDPrnlOcdLUfU4/n+ixpjSHp/WSUbNXpMUMiVg= X-Google-Smtp-Source: ABdhPJzfdLC6OzyNOAa1JarYePJQHVbqoJlds3pbO1CuckSzLku6OwtHI5NUXEZJcd2493Dr4EzFnHllqwda6FBD5q0= X-Received: by 2002:a5d:97d9:: with SMTP id k25mr21886227ios.42.1593969473475; Sun, 05 Jul 2020 10:17:53 -0700 (PDT) In-Reply-To: X-Gmail-Original-Message-ID: X-Scan-Signature: 980022258218d8e0da9e8fd80fb6777b Received-SPF: pass client-ip=171.64.64.26; envelope-from=blp@cs.stanford.edu; helo=smtp2.cs.Stanford.EDU X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/05 13:16:35 X-ACL-Warn: Detected OS = Linux 3.1-3.10 X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=_AUTOLEARN X-Spam_action: no action X-Mailman-Approved-At: Sun, 05 Jul 2020 13:24:40 -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:252710 gmane.comp.statistics.pspp.devel:7579 Archived-At: On Sun, Jul 5, 2020 at 7:59 AM Stefan Monnier wr= ote: > > COMMENT at the start of a line (optionally preceded by whitespace) beg= ins 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. > > That would mean that the doc needs to be fixed, since it says at > https://www.gnu.org/software/pspp/manual/html_node/COMMENT.html: > > COMMENT can extend over any number of lines. Don=E2=80=99t forget to= terminate > it with a dot or a blank line. > > I don't fully understand what `segmenter_parse_comment_1__` does in > `src/language/lexer/segment.c` but it seems to suggest that the doc is > right, yet the `t-test.sps` file strongly suggests that the reality > is different. > > Could someone enlighten me as to the actual syntax of comments for .sps > files (maybe it's not defined in `src/language/lexer/segment.c` but in > some other file)? I think that my parallel contribution to the thread here explains this, but if not then please do ask for clarification.