Mercurial > vim
comparison runtime/doc/syntax.txt @ 21676:1b345fb68ae3
Update runtime files.
Commit: https://github.com/vim/vim/commit/e7b1ea0276cc83cd5c612f3189a174a60d57b5ed
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Aug 7 19:54:59 2020 +0200
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 07 Aug 2020 20:00:05 +0200 |
parents | 3a1ed539ae2a |
children | bbca88cd13d5 |
comparison
equal
deleted
inserted
replaced
21675:49ed426f3fb5 | 21676:1b345fb68ae3 |
---|---|
1 *syntax.txt* For Vim version 8.2. Last change: 2020 Jul 08 | 1 *syntax.txt* For Vim version 8.2. Last change: 2020 Jul 28 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
3646 foldmethod=syntax (see |fold-syntax| and |:syn-fold|): | 3646 foldmethod=syntax (see |fold-syntax| and |:syn-fold|): |
3647 | 3647 |
3648 start: Use level of item containing start of line. | 3648 start: Use level of item containing start of line. |
3649 minimum: Use lowest local-minimum level of items on line. | 3649 minimum: Use lowest local-minimum level of items on line. |
3650 | 3650 |
3651 The default is 'start'. Use 'minimum' to search a line horizontally | 3651 The default is "start". Use "minimum" to search a line horizontally |
3652 for the lowest level contained on the line that is followed by a | 3652 for the lowest level contained on the line that is followed by a |
3653 higher level. This produces more natural folds when syntax items | 3653 higher level. This produces more natural folds when syntax items |
3654 may close and open horizontally within a line. | 3654 may close and open horizontally within a line. |
3655 | 3655 |
3656 :sy[ntax] foldlevel | 3656 :sy[ntax] foldlevel |
3793 :sy[ntax] region {group-name} [{options}] | 3793 :sy[ntax] region {group-name} [{options}] |
3794 [matchgroup={group-name}] | 3794 [matchgroup={group-name}] |
3795 [keepend] | 3795 [keepend] |
3796 [extend] | 3796 [extend] |
3797 [excludenl] | 3797 [excludenl] |
3798 start={start_pattern} .. | 3798 start={start-pattern} .. |
3799 [skip={skip_pattern}] | 3799 [skip={skip-pattern}] |
3800 end={end_pattern} .. | 3800 end={end-pattern} .. |
3801 [{options}] | 3801 [{options}] |
3802 | 3802 |
3803 This defines one region. It may span several lines. | 3803 This defines one region. It may span several lines. |
3804 | 3804 |
3805 {group-name} A syntax group name such as "Comment". | 3805 {group-name} A syntax group name such as "Comment". |
3817 is contained in. See |:syn-extend|. | 3817 is contained in. See |:syn-extend|. |
3818 excludenl Don't make a pattern with the end-of-line "$" | 3818 excludenl Don't make a pattern with the end-of-line "$" |
3819 extend a containing match or item. Only | 3819 extend a containing match or item. Only |
3820 useful for end patterns. Must be given before | 3820 useful for end patterns. Must be given before |
3821 the patterns it applies to. |:syn-excludenl| | 3821 the patterns it applies to. |:syn-excludenl| |
3822 start={start_pattern} The search pattern that defines the start of | 3822 start={start-pattern} The search pattern that defines the start of |
3823 the region. See |:syn-pattern| below. | 3823 the region. See |:syn-pattern| below. |
3824 skip={skip_pattern} The search pattern that defines text inside | 3824 skip={skip-pattern} The search pattern that defines text inside |
3825 the region where not to look for the end | 3825 the region where not to look for the end |
3826 pattern. See |:syn-pattern| below. | 3826 pattern. See |:syn-pattern| below. |
3827 end={end_pattern} The search pattern that defines the end of | 3827 end={end-pattern} The search pattern that defines the end of |
3828 the region. See |:syn-pattern| below. | 3828 the region. See |:syn-pattern| below. |
3829 | 3829 |
3830 Example: > | 3830 Example: > |
3831 :syntax region String start=+"+ skip=+\\"+ end=+"+ | 3831 :syntax region String start=+"+ skip=+\\"+ end=+"+ |
3832 < | 3832 < |