all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Xue Fuqiao <xfq.free@gmail.com>
To: help-gnu-emacs <help-gnu-emacs@gnu.org>
Subject: Re: Questions about parser state
Date: Sat, 5 Oct 2013 18:08:30 +0800	[thread overview]
Message-ID: <CAAF+z6EahF4CEjvHkt=ix7r7z+zOXrE+tV+F=N26njDxt16s5w@mail.gmail.com> (raw)
In-Reply-To: <jwvr4c0bhd2.fsf-monnier+gmane.emacs.help@gnu.org>

On Sat, Oct 5, 2013 at 10:08 AM, Stefan Monnier
<monnier@iro.umontreal.ca> 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 ‘a’?  In (info "(elisp) Syntax Flags"): "A
>>    comment style is a set of flags ‘b’, ‘c’, and ‘n’, so there can be up
>>    to 8 different comment styles."  I can't find an ‘a’ 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?

=== 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.

-- 
Best regards, Xue Fuqiao.
http://www.gnu.org/software/emacs/



  reply	other threads:[~2013-10-05 10:08 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-10-04 23:19 Questions about parser state Xue Fuqiao
2013-10-05  2:08 ` Stefan Monnier
2013-10-05 10:08   ` Xue Fuqiao [this message]
2013-10-05 19:26     ` Stefan Monnier
2013-10-05 14:17   ` Drew Adams

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='CAAF+z6EahF4CEjvHkt=ix7r7z+zOXrE+tV+F=N26njDxt16s5w@mail.gmail.com' \
    --to=xfq.free@gmail.com \
    --cc=help-gnu-emacs@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.