unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Andreas Schwab <schwab@linux-m68k.org>
To: Vasilij Schneidermann <v.schneidermann@gmail.com>
Cc: emacs-devel <emacs-devel@gnu.org>
Subject: Re: Combining syntax comment sequences (yaml-mode)
Date: Wed, 23 Dec 2015 12:01:59 +0100	[thread overview]
Message-ID: <87bn9hxwbc.fsf@igel.home> (raw)
In-Reply-To: <20151223104741.GA769@odonien.fritz.box> (Vasilij Schneidermann's message of "Wed, 23 Dec 2015 11:47:41 +0100")

Vasilij Schneidermann <v.schneidermann@gmail.com> writes:

> While this covers most cases one would run into, it doesn't conform to
> the YAML specification[1]:  A comment is either a token separated by
> whitespace from other tokens or is on its own line.  This rule allows
> you to use something like "foo#bar" as a token without "bar" getting
> interpreted as a comment.  However with the code above "bar" will get
> fontified as if it were a comment.

Very similar to bourne shell syntax, so look at sh-script for hints,
especially sh-syntax-propertize-function.

Andreas.

-- 
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



  reply	other threads:[~2015-12-23 11:01 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-12-23 10:47 Combining syntax comment sequences (yaml-mode) Vasilij Schneidermann
2015-12-23 11:01 ` Andreas Schwab [this message]
2015-12-23 18:28   ` Vasilij Schneidermann
2015-12-23 18:46     ` Dmitry Gutov
2015-12-23 21:56   ` Vasilij Schneidermann

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

  List information: https://www.gnu.org/software/emacs/

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

  git send-email \
    --in-reply-to=87bn9hxwbc.fsf@igel.home \
    --to=schwab@linux-m68k.org \
    --cc=emacs-devel@gnu.org \
    --cc=v.schneidermann@gmail.com \
    /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 public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).