Mercurial > vim
comparison runtime/doc/syntax.txt @ 6647:3af822eb4da5
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 28 Feb 2015 13:11:45 +0100 |
parents | b0a227941705 |
children | 12155a47f6c2 |
comparison
equal
deleted
inserted
replaced
6646:22d190c6dfd3 | 6647:3af822eb4da5 |
---|---|
1 *syntax.txt* For Vim version 7.4. Last change: 2015 Feb 03 | 1 *syntax.txt* For Vim version 7.4. Last change: 2015 Feb 22 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
209 A syntax group name is to be used for syntax items that match the same kind of | 209 A syntax group name is to be used for syntax items that match the same kind of |
210 thing. These are then linked to a highlight group that specifies the color. | 210 thing. These are then linked to a highlight group that specifies the color. |
211 A syntax group name doesn't specify any color or attributes itself. | 211 A syntax group name doesn't specify any color or attributes itself. |
212 | 212 |
213 The name for a highlight or syntax group must consist of ASCII letters, digits | 213 The name for a highlight or syntax group must consist of ASCII letters, digits |
214 and the underscore. As a regexp: "[a-zA-Z0-9_]*" | 214 and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give |
215 an error when using other characters. | |
215 | 216 |
216 To be able to allow each user to pick his favorite set of colors, there must | 217 To be able to allow each user to pick his favorite set of colors, there must |
217 be preferred names for highlight groups that are common for many languages. | 218 be preferred names for highlight groups that are common for many languages. |
218 These are the suggested group names (if syntax highlighting works properly | 219 These are the suggested group names (if syntax highlighting works properly |
219 you can see the actual color, except for "Ignore"): | 220 you can see the actual color, except for "Ignore"): |
4251 | 4252 |
4252 If the "maxlines={N}" argument is given, the number of lines that are searched | 4253 If the "maxlines={N}" argument is given, the number of lines that are searched |
4253 for a comment or syncing pattern is restricted to N lines backwards (after | 4254 for a comment or syncing pattern is restricted to N lines backwards (after |
4254 adding "minlines"). This is useful if you have few things to sync on and a | 4255 adding "minlines"). This is useful if you have few things to sync on and a |
4255 slow machine. Example: > | 4256 slow machine. Example: > |
4256 :syntax sync ccomment maxlines=500 | 4257 :syntax sync maxlines=500 ccomment |
4257 < | 4258 < |
4258 *:syn-sync-linebreaks* | 4259 *:syn-sync-linebreaks* |
4259 When using a pattern that matches multiple lines, a change in one line may | 4260 When using a pattern that matches multiple lines, a change in one line may |
4260 cause a pattern to no longer match in a previous line. This means has to | 4261 cause a pattern to no longer match in a previous line. This means has to |
4261 start above where the change was made. How many lines can be specified with | 4262 start above where the change was made. How many lines can be specified with |