comparison runtime/doc/syntax.txt @ 6259:bd18da914be9

Update runtime files.
author Bram Moolenaar <bram@vim.org>
date Thu, 02 Oct 2014 01:41:41 +0200
parents 37c24033b260
children 5d89d9b40499
comparison
equal deleted inserted replaced
6258:9616ea904a7e 6259:bd18da914be9
1 *syntax.txt* For Vim version 7.4. Last change: 2014 Sep 09 1 *syntax.txt* For Vim version 7.4. Last change: 2014 Sep 27
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
3797 The 'foldnestmax' option limits the nesting of syntax folds. 3797 The 'foldnestmax' option limits the nesting of syntax folds.
3798 {not available when Vim was compiled without |+folding| feature} 3798 {not available when Vim was compiled without |+folding| feature}
3799 3799
3800 3800
3801 *:syn-contains* *E405* *E406* *E407* *E408* *E409* 3801 *:syn-contains* *E405* *E406* *E407* *E408* *E409*
3802 contains={groupname},.. 3802 contains={group-name},..
3803 3803
3804 The "contains" argument is followed by a list of syntax group names. These 3804 The "contains" argument is followed by a list of syntax group names. These
3805 groups will be allowed to begin inside the item (they may extend past the 3805 groups will be allowed to begin inside the item (they may extend past the
3806 containing group's end). This allows for recursive nesting of matches and 3806 containing group's end). This allows for recursive nesting of matches and
3807 regions. If there is no "contains" argument, no groups will be contained in 3807 regions. If there is no "contains" argument, no groups will be contained in
3850 |:syn-matchgroup|. The "ms=" and "me=" offsets can be used to change the 3850 |:syn-matchgroup|. The "ms=" and "me=" offsets can be used to change the
3851 region where contained items do match. Note that this may also limit the 3851 region where contained items do match. Note that this may also limit the
3852 area that is highlighted 3852 area that is highlighted
3853 3853
3854 3854
3855 containedin={groupname}... *:syn-containedin* 3855 containedin={group-name}... *:syn-containedin*
3856 3856
3857 The "containedin" argument is followed by a list of syntax group names. The 3857 The "containedin" argument is followed by a list of syntax group names. The
3858 item will be allowed to begin inside these groups. This works as if the 3858 item will be allowed to begin inside these groups. This works as if the
3859 containing item has a "contains=" argument that includes this item. 3859 containing item has a "contains=" argument that includes this item.
3860 3860
3861 The {groupname}... can be used just like for "contains", as explained above. 3861 The {group-name}... can be used just like for "contains", as explained above.
3862 3862
3863 This is useful when adding a syntax item afterwards. An item can be told to 3863 This is useful when adding a syntax item afterwards. An item can be told to
3864 be included inside an already existing item, without changing the definition 3864 be included inside an already existing item, without changing the definition
3865 of that item. For example, to highlight a word in a C comment after loading 3865 of that item. For example, to highlight a word in a C comment after loading
3866 the C syntax: > 3866 the C syntax: >
3872 appear. A "contains" argument may also be added as usual. Don't forget that 3872 appear. A "contains" argument may also be added as usual. Don't forget that
3873 keywords never contain another item, thus adding them to "containedin" won't 3873 keywords never contain another item, thus adding them to "containedin" won't
3874 work. 3874 work.
3875 3875
3876 3876
3877 nextgroup={groupname},.. *:syn-nextgroup* 3877 nextgroup={group-name},.. *:syn-nextgroup*
3878 3878
3879 The "nextgroup" argument is followed by a list of syntax group names, 3879 The "nextgroup" argument is followed by a list of syntax group names,
3880 separated by commas (just like with "contains", so you can also use patterns). 3880 separated by commas (just like with "contains", so you can also use patterns).
3881 3881
3882 If the "nextgroup" argument is given, the mentioned syntax groups will be 3882 If the "nextgroup" argument is given, the mentioned syntax groups will be