From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Xue Fuqiao Newsgroups: gmane.emacs.help Subject: Re: Questions about parser state Date: Sat, 5 Oct 2013 18:08:30 +0800 Message-ID: References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1380967719 16433 80.91.229.3 (5 Oct 2013 10:08:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 5 Oct 2013 10:08:39 +0000 (UTC) To: help-gnu-emacs Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Oct 05 12:08:44 2013 Return-path: Envelope-to: geh-help-gnu-emacs@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 1VSOmw-00051f-Sv for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Oct 2013 12:08:43 +0200 Original-Received: from localhost ([::1]:51370 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSOmw-0002Fi-E5 for geh-help-gnu-emacs@m.gmane.org; Sat, 05 Oct 2013 06:08:42 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38391) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSOml-0002FI-T4 for help-gnu-emacs@gnu.org; Sat, 05 Oct 2013 06:08:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VSOmk-0002AW-RU for help-gnu-emacs@gnu.org; Sat, 05 Oct 2013 06:08:31 -0400 Original-Received: from mail-ie0-x229.google.com ([2607:f8b0:4001:c03::229]:48103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VSOmk-0002AR-Ll for help-gnu-emacs@gnu.org; Sat, 05 Oct 2013 06:08:30 -0400 Original-Received: by mail-ie0-f169.google.com with SMTP id tp5so11547029ieb.14 for ; Sat, 05 Oct 2013 03:08:30 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; bh=8kz+P30onUCYaiSzZwgRUcpr6E4cDvhRDzbwXpSxWxI=; b=Kri/PuSx0C+yE5S7tjwsa9+THZKXmEnu6fXWtXSMofKYPNZkrqQLWGyoeq5p0+m8lt CrLbVP48bpDf85upO5b6XBfyJy4JnXSMjX2eOxGvvNfNWpF0j/wh4qpDrcl8ILOl1fUU 982MgbpBCdbc0oOUUyOxBR388b+8tpBqLOTPvXr1oslLsFAstEi4a/qCowj8GXQuGYaL 7WnFJpuqyx/8tjAPLYjQSaNa2xqynGO3ThMfU9FsZKmJirfC6cXTM33jrwoO1JtKz/sT wUo7aAWrP9ebhcqCIU40K3ZC6HGg94Bzy+6y4SjSFvVZP06Ow8nL7vrQZ9beA86mwaNS a06g== X-Received: by 10.42.232.206 with SMTP id jv14mr10574icb.52.1380967710106; Sat, 05 Oct 2013 03:08:30 -0700 (PDT) Original-Received: by 10.42.133.72 with HTTP; Sat, 5 Oct 2013 03:08:30 -0700 (PDT) In-Reply-To: X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2607:f8b0:4001:c03::229 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:93854 Archived-At: On Sat, Oct 5, 2013 at 10:08 AM, Stefan Monnier wrote: >> 1. What does the "quote character" mean? Does it mean "'" in Lisp? If >> so, what about "," and "#"? > > No, it's typically the \ char. > >> 2. What is comment style =E2=80=98a=E2=80=99? In (info "(elisp) Syntax = Flags"): "A >> comment style is a set of flags =E2=80=98b=E2=80=99, =E2=80=98c=E2=80= =99, and =E2=80=98n=E2=80=99, so there can be up >> to 8 different comment styles." I can't find an =E2=80=98a=E2=80=99 = style. > > `a' is the comment style when neither `b' nor `c' is present. I see, thank you. To make it clearer, what about the following patch? =3D=3D=3D modified file 'doc/lispref/syntax.texi' *** doc/lispref/syntax.texi 2013-10-03 15:32:10 +0000 --- doc/lispref/syntax.texi 2013-10-05 10:07:16 +0000 *************** *** 339,349 **** @cindex comment style Emacs supports several comment styles simultaneously in any one syntax table. A comment style is a set of flags @samp{b}, @samp{c}, and ! @samp{n}, so there can be up to 8 different comment styles. ! Each comment delimiter has a style and only matches comment delimiters ! of the same style. Thus if a comment starts with the comment-start ! sequence of style ``bn'', it will extend until the next matching ! comment-end sequence of style ``bn''. The appropriate comment syntax settings for C++ can be as follows: --- 339,350 ---- @cindex comment style Emacs supports several comment styles simultaneously in any one syntax table. A comment style is a set of flags @samp{b}, @samp{c}, and ! @samp{n}, so there can be up to 8 different comment styles. When ! neither @samp{b} nor @samp{c} is present, the comment style is ! @samp{a}. Each comment delimiter has a style and only matches comment ! delimiters of the same style. Thus if a comment starts with the ! comment-start sequence of style ``bn'', it will extend until the next ! matching comment-end sequence of style ``bn''. The appropriate comment syntax settings for C++ can be as follows: *************** *** 838,844 **** @item @cindex quote character ! @code{t} if the end point is just after a quote character. @item The minimum parenthesis depth encountered during this scan. --- 839,845 ---- @item @cindex quote character ! @code{t} if the end point is just after an escape-syntax character. @item The minimum parenthesis depth encountered during this scan. --=20 Best regards, Xue Fuqiao. http://www.gnu.org/software/emacs/