Mercurial > vim
comparison runtime/doc/syntax.txt @ 2751:b0d34143ebfc
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Fri, 01 Apr 2011 18:03:16 +0200 |
parents | b6471224d2af |
children | 0877b8d6370e |
comparison
equal
deleted
inserted
replaced
2750:66fe19b3c59a | 2751:b0d34143ebfc |
---|---|
1 *syntax.txt* For Vim version 7.3. Last change: 2011 Jan 22 | 1 *syntax.txt* For Vim version 7.3. Last change: 2011 Apr 01 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
3221 :sy region par2 matchgroup=par2 start=/(/ end=/)/ contains=par3 contained | 3221 :sy region par2 matchgroup=par2 start=/(/ end=/)/ contains=par3 contained |
3222 :sy region par3 matchgroup=par3 start=/(/ end=/)/ contains=par1 contained | 3222 :sy region par3 matchgroup=par3 start=/(/ end=/)/ contains=par1 contained |
3223 :hi par1 ctermfg=red guifg=red | 3223 :hi par1 ctermfg=red guifg=red |
3224 :hi par2 ctermfg=blue guifg=blue | 3224 :hi par2 ctermfg=blue guifg=blue |
3225 :hi par3 ctermfg=darkgreen guifg=darkgreen | 3225 :hi par3 ctermfg=darkgreen guifg=darkgreen |
3226 < | |
3227 *E849* | |
3228 The maximum number of syntax groups is 19999. | |
3226 | 3229 |
3227 ============================================================================== | 3230 ============================================================================== |
3228 6. :syntax arguments *:syn-arguments* | 3231 6. :syntax arguments *:syn-arguments* |
3229 | 3232 |
3230 The :syntax commands that define syntax items take a number of arguments. | 3233 The :syntax commands that define syntax items take a number of arguments. |
3759 :syntax cluster SmallGroup contains=B | 3762 :syntax cluster SmallGroup contains=B |
3760 :syntax cluster BigGroup contains=A,@SmallGroup | 3763 :syntax cluster BigGroup contains=A,@SmallGroup |
3761 :syntax match Stuff "( aaa bbb )" contains=@BigGroup | 3764 :syntax match Stuff "( aaa bbb )" contains=@BigGroup |
3762 :syntax cluster BigGroup remove=B " no effect, since B isn't in BigGroup | 3765 :syntax cluster BigGroup remove=B " no effect, since B isn't in BigGroup |
3763 :syntax cluster SmallGroup remove=B " now bbb isn't matched within Stuff | 3766 :syntax cluster SmallGroup remove=B " now bbb isn't matched within Stuff |
3767 < | |
3768 *E848* | |
3769 The maximum number of clusters is 9767. | |
3764 | 3770 |
3765 ============================================================================== | 3771 ============================================================================== |
3766 9. Including syntax files *:syn-include* *E397* | 3772 9. Including syntax files *:syn-include* *E397* |
3767 | 3773 |
3768 It is often useful for one language's syntax file to include a syntax file for | 3774 It is often useful for one language's syntax file to include a syntax file for |
3797 (e.g., "syntax/pod.vim") the file is searched for in 'runtimepath'. | 3803 (e.g., "syntax/pod.vim") the file is searched for in 'runtimepath'. |
3798 All matching files are loaded. Using a relative path is | 3804 All matching files are loaded. Using a relative path is |
3799 recommended, because it allows a user to replace the included file | 3805 recommended, because it allows a user to replace the included file |
3800 with his own version, without replacing the file that does the ":syn | 3806 with his own version, without replacing the file that does the ":syn |
3801 include". | 3807 include". |
3808 | |
3809 *E847* | |
3810 The maximum number of includes is 999. | |
3802 | 3811 |
3803 ============================================================================== | 3812 ============================================================================== |
3804 10. Synchronizing *:syn-sync* *E403* *E404* | 3813 10. Synchronizing *:syn-sync* *E403* *E404* |
3805 | 3814 |
3806 Vim wants to be able to start redrawing in any position in the document. To | 3815 Vim wants to be able to start redrawing in any position in the document. To |