all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: John Darrington <john@darrington.wattle.id.au>
To: Stefan Monnier <monnier@iro.umontreal.ca>
Cc: Friedrich Beckmann <friedrich.beckmann@gmx.de>,
	emacs-devel@gnu.org,
	John Darrington <john@darrington.wattle.id.au>,
	mail@vasilij.de, PSPP Development Mailing List <pspp-dev@gnu.org>
Subject: Re: Fwd: [ELPA] New package: pspp-mode.el for PSPP/SPSS syntax highlighting
Date: Sun, 5 Jul 2020 08:06:38 +0200	[thread overview]
Message-ID: <20200705060638.GA17172@jocasta.intra> (raw)
In-Reply-To: <jwvy2nyq5bh.fsf-monnier+emacs@gnu.org>

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'



  reply	other threads:[~2020-07-05  6:06 UTC|newest]

Thread overview: 22+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <jwvr1twzlte.fsf-monnier+emacs@gnu.org>
2020-06-30 21:55 ` Fwd: [ELPA] New package: pspp-mode.el for PSPP/SPSS syntax highlighting Friedrich Beckmann
2020-07-04  9:20   ` John Darrington
2020-07-04 13:12   ` Stefan Monnier
2020-07-04 15:15     ` John Darrington
2020-07-04 22:45       ` Stefan Monnier
2020-07-05  6:06         ` John Darrington [this message]
2020-07-05 14:59           ` Stefan Monnier
2020-07-05 17:17             ` Ben Pfaff
2020-07-05 17:16         ` Ben Pfaff
2020-07-05 22:01           ` Stefan Monnier
2020-07-05 22:17             ` Ben Pfaff
2020-07-05  9:44       ` Friedrich Beckmann
2020-07-05 11:18         ` John Darrington
2020-07-05 16:51         ` Sean Whitton
2020-07-05 17:14           ` Friedrich Beckmann
2020-07-05 18:35           ` John Darrington
2020-07-05 18:50             ` tomas
2020-07-05 20:20             ` Sean Whitton
2020-07-06  5:53               ` Dmitry Alexandrov
2020-07-06  6:01                 ` Sean Whitton
2020-07-06  6:38                   ` Dmitry Alexandrov
2020-07-07  4:51                     ` Sean Whitton

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20200705060638.GA17172@jocasta.intra \
    --to=john@darrington.wattle.id.au \
    --cc=emacs-devel@gnu.org \
    --cc=friedrich.beckmann@gmx.de \
    --cc=mail@vasilij.de \
    --cc=monnier@iro.umontreal.ca \
    --cc=pspp-dev@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.