From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.devel Subject: Re: Combining syntax comment sequences (yaml-mode) Date: Wed, 23 Dec 2015 12:01:59 +0100 Message-ID: <87bn9hxwbc.fsf@igel.home> References: <20151223104741.GA769@odonien.fritz.box> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1450868571 26700 80.91.229.3 (23 Dec 2015 11:02:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 23 Dec 2015 11:02:51 +0000 (UTC) Cc: emacs-devel To: Vasilij Schneidermann Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Dec 23 12:02:37 2015 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1aBhBl-0002PZ-Ml for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2015 12:02:37 +0100 Original-Received: from localhost ([::1]:55445 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBhBk-0003Ws-Ve for ged-emacs-devel@m.gmane.org; Wed, 23 Dec 2015 06:02:36 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:37810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBhBY-0003WP-1b for emacs-devel@gnu.org; Wed, 23 Dec 2015 06:02:24 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aBhBU-0003dp-Pk for emacs-devel@gnu.org; Wed, 23 Dec 2015 06:02:23 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:53304) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aBhBU-0003dk-Jt for emacs-devel@gnu.org; Wed, 23 Dec 2015 06:02:20 -0500 Original-Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 3pQWp31mrHz3hjQZ; Wed, 23 Dec 2015 12:02:19 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3pQWp31CWkzvhPw; Wed, 23 Dec 2015 12:02:19 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id rsJcmt_xpza9; Wed, 23 Dec 2015 12:02:15 +0100 (CET) X-Auth-Info: dgzVTh5gqWekZ6IfUndsu/pWjOvXcSZUlo7zuQHCVNDXOlJ+UF9hwW4NSe3Agnev Original-Received: from igel.home (ppp-88-217-11-24.dynamic.mnet-online.de [88.217.11.24]) by mail.mnet-online.de (Postfix) with ESMTPA; Wed, 23 Dec 2015 12:01:59 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id 55FEA2C718F; Wed, 23 Dec 2015 12:01:59 +0100 (CET) X-Yow: I used to be a FUNDAMENTALIST, but then I heard about the HIGH RADIATION LEVELS and bought an ENCYCLOPEDIA!! In-Reply-To: <20151223104741.GA769@odonien.fritz.box> (Vasilij Schneidermann's message of "Wed, 23 Dec 2015 11:47:41 +0100") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 212.18.0.9 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:196704 Archived-At: Vasilij Schneidermann 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."