[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Combining syntax comment sequences (yaml-mode)

From: Andreas Schwab
Subject: Re: Combining syntax comment sequences (yaml-mode)
Date: Wed, 23 Dec 2015 12:01:59 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux)

Vasilij Schneidermann <address@hidden> 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 Schwab, address@hidden
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]