comparison runtime/doc/syntax.txt @ 27537:063952f68595

Update runtime files. Commit: https://github.com/vim/vim/commit/a2baa73d1d33014adea0fd9567949089ca21a782 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Feb 4 16:09:54 2022 +0000 Update runtime files.
author Bram Moolenaar <Bram@vim.org>
date Fri, 04 Feb 2022 17:15:05 +0100
parents 3649b5a6b1b6
children 179c118424a6
comparison
equal deleted inserted replaced
27536:de1ec574cab2 27537:063952f68595
1 *syntax.txt* For Vim version 8.2. Last change: 2021 Nov 20 1 *syntax.txt* For Vim version 8.2. Last change: 2022 Feb 04
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
213 thing. These are then linked to a highlight group that specifies the color. 213 thing. These are then linked to a highlight group that specifies the color.
214 A syntax group name doesn't specify any color or attributes itself. 214 A syntax group name doesn't specify any color or attributes itself.
215 215
216 The name for a highlight or syntax group must consist of ASCII letters, digits 216 The name for a highlight or syntax group must consist of ASCII letters, digits
217 and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give 217 and the underscore. As a regexp: "[a-zA-Z0-9_]*". However, Vim does not give
218 an error when using other characters. 218 an error when using other characters. The maxium length of a group name is
219 about 200 bytes. *E1249*
219 220
220 To be able to allow each user to pick their favorite set of colors, there must 221 To be able to allow each user to pick their favorite set of colors, there must
221 be preferred names for highlight groups that are common for many languages. 222 be preferred names for highlight groups that are common for many languages.
222 These are the suggested group names (if syntax highlighting works properly 223 These are the suggested group names (if syntax highlighting works properly
223 you can see the actual color, except for "Ignore"): 224 you can see the actual color, except for "Ignore"):
1533 :let form_enhanced_color=1 1534 :let form_enhanced_color=1
1534 1535
1535 The enhanced mode also takes advantage of additional color features for a dark 1536 The enhanced mode also takes advantage of additional color features for a dark
1536 gvim display. Here, statements are colored LightYellow instead of Yellow, and 1537 gvim display. Here, statements are colored LightYellow instead of Yellow, and
1537 conditionals are LightBlue for better distinction. 1538 conditionals are LightBlue for better distinction.
1539
1540 Both Visual Basic and FORM use the extension ".frm". To detect which one
1541 should be used, Vim checks for the string "VB_Name" in the first five lines of
1542 the file. If it is found, filetype will be "vb", otherwise "form".
1543
1544 If the automatic detection doesn't work for you or you only edit, for
1545 example, FORM files, use this in your startup vimrc: >
1546 :let filetype_frm = "form"
1538 1547
1539 1548
1540 FORTH *forth.vim* *ft-forth-syntax* 1549 FORTH *forth.vim* *ft-forth-syntax*
1541 1550
1542 Files matching "*.fs" could be F# or Forth. If the automatic detection 1551 Files matching "*.fs" could be F# or Forth. If the automatic detection