diff options
| author | Eli Zaretskii | 2018-06-02 14:01:18 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2018-06-02 14:01:18 +0300 |
| commit | 6107e12f76d3f7ea3136b04d8856b3f9ebc97e1d (patch) | |
| tree | a2ea69be004b47abcb00e738dfa2319050325fb3 | |
| parent | fb45125c80313b85a7ee56417e746eeac5eecb05 (diff) | |
| download | emacs-6107e12f76d3f7ea3136b04d8856b3f9ebc97e1d.tar.gz emacs-6107e12f76d3f7ea3136b04d8856b3f9ebc97e1d.zip | |
Improve documentation of comment styles
* doc/lispref/syntax.texi (Syntax Flags): Define the "a" style.
(Bug#31624)
| -rw-r--r-- | doc/lispref/syntax.texi | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/doc/lispref/syntax.texi b/doc/lispref/syntax.texi index 44a7730c7ab..71c97fdae8c 100644 --- a/doc/lispref/syntax.texi +++ b/doc/lispref/syntax.texi | |||
| @@ -339,11 +339,13 @@ same style will be recognized. For a two-character comment delimiter, | |||
| 339 | @cindex comment style | 339 | @cindex comment style |
| 340 | Emacs supports several comment styles simultaneously in any one syntax | 340 | Emacs supports several comment styles simultaneously in any one syntax |
| 341 | table. A comment style is a set of flags @samp{b}, @samp{c}, and | 341 | table. A comment style is a set of flags @samp{b}, @samp{c}, and |
| 342 | @samp{n}, so there can be up to 8 different comment styles. | 342 | @samp{n}, so there can be up to 8 different comment styles, each one |
| 343 | Each comment delimiter has a style and only matches comment delimiters | 343 | named by the set of its flags. Each comment delimiter has a style and |
| 344 | of the same style. Thus if a comment starts with the comment-start | 344 | only matches comment delimiters of the same style. Thus if a comment |
| 345 | sequence of style ``bn'', it will extend until the next matching | 345 | starts with the comment-start sequence of style ``bn'', it will extend |
| 346 | comment-end sequence of style ``bn''. | 346 | until the next matching comment-end sequence of style ``bn''. When |
| 347 | the set of flags has neither flag @samp{b} nor flag @samp{c} set, the | ||
| 348 | resulting style is called the ``a'' style. | ||
| 347 | 349 | ||
| 348 | The appropriate comment syntax settings for C++ can be as follows: | 350 | The appropriate comment syntax settings for C++ can be as follows: |
| 349 | 351 | ||