From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Stefan Monnier 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, 05 Jul 2020 10:59:02 -0400 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="23460"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux) Cc: Friedrich Beckmann , emacs-devel@gnu.org, mail@vasilij.de, PSPP Development Mailing List To: John Darrington , Ben Pfaff Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sun Jul 05 16:59:56 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 1js67Y-0005zH-KR for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 16:59:56 +0200 Original-Received: from localhost ([::1]:42710 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1js67X-00084K-LW for ged-emacs-devel@m.gmane-mx.org; Sun, 05 Jul 2020 10:59:55 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:36758) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1js66p-0007TN-3t; Sun, 05 Jul 2020 10:59:11 -0400 Original-Received: from mailscanner.iro.umontreal.ca ([132.204.25.50]:47872) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1js66m-0002bz-I5; Sun, 05 Jul 2020 10:59:10 -0400 Original-Received: from pmg3.iro.umontreal.ca (localhost [127.0.0.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 936A5441033; Sun, 5 Jul 2020 10:59:06 -0400 (EDT) Original-Received: from mail01.iro.umontreal.ca (unknown [172.31.2.1]) by pmg3.iro.umontreal.ca (Proxmox) with ESMTP id 0E4BD441031; Sun, 5 Jul 2020 10:59:05 -0400 (EDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=iro.umontreal.ca; s=mail; t=1593961145; bh=gGwrQDQkv7qOqZMMfmTDg2UrMUAVsiA50GdW0t/8m0s=; h=From:To:Cc:Subject:References:Date:In-Reply-To:From; b=lCQJgDNK7C+4vaYxFJ02MTSpCIODeQNY7OsA6Acrh3OFavfO9iwzgcrGtb5sfjbja g0IBRWKRmAlyxMaTS+vu8b6L6v6rvNsk/Ro2Ag3uDB89UI+nqhYzfJ4HZQfm+ZyQPS Ga3wpGcFGw5zh48KSpyaZTgOMTljoKi+hWKu1hUCM0Dq66V0u4BJOzqYwdM6tebNCO CSf43pfNZoUfjZqhKWe/azpIK9+p/I9QTNk4HyGqM2loPX9CMUagGOg56aliHv+pQu ssOZtyE/2w7flJKLXMYBAcBhSIsLns3Y3pLooOhiCx354fgHkFtU7etBhyZvf0Eb76 MjdQRrb8k8/zg== Original-Received: from alfajor (unknown [157.52.0.200]) by mail01.iro.umontreal.ca (Postfix) with ESMTPSA id 4ACF9120873; Sun, 5 Jul 2020 10:59:04 -0400 (EDT) In-Reply-To: <20200705060638.GA17172@jocasta.intra> (John Darrington's message of "Sun, 5 Jul 2020 08:06:38 +0200") Received-SPF: pass client-ip=132.204.25.50; envelope-from=monnier@iro.umontreal.ca; helo=mailscanner.iro.umontreal.ca X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/05 10:59:06 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] X-Spam_score_int: -42 X-Spam_score: -4.3 X-Spam_bar: ---- X-Spam_report: (-4.3 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001 autolearn=_AUTOLEARN X-Spam_action: no action 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:252698 gmane.comp.statistics.pspp.devel:7576 Archived-At: > COMMENT at the start of a line (optionally preceded by whitespace) begin= s a comment. > * at the start of a line (optionally preceded by whitespace) begins a co= mment. > 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 t= erminate 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)? Stefan