Mercurial > vim
comparison runtime/doc/syntax.txt @ 838:8e5830943bff v7.0e04
updated for version 7.0e04
author | vimboss |
---|---|
date | Thu, 20 Apr 2006 22:17:20 +0000 |
parents | 5117153003bd |
children | a209672376fd |
comparison
equal
deleted
inserted
replaced
837:6bb1fa855dc9 | 838:8e5830943bff |
---|---|
1 *syntax.txt* For Vim version 7.0e. Last change: 2006 Apr 15 | 1 *syntax.txt* For Vim version 7.0e. Last change: 2006 Apr 20 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1604 instead, and the name of your source file should be *.pike | 1604 instead, and the name of your source file should be *.pike |
1605 | 1605 |
1606 | 1606 |
1607 LUA *lua.vim* *ft-lua-syntax* | 1607 LUA *lua.vim* *ft-lua-syntax* |
1608 | 1608 |
1609 This syntax file may be used for Lua 4.0 and Lua 5.0 (default). If you are | 1609 This syntax file may be used for Lua 4.0, Lua 5.0 or Lua 5.1 (the latter is |
1610 programming in Lua 4.0, use this: > | 1610 the default). You can select one of these versions using the global variables |
1611 lua_version and lua_subversion. For example, to activate Lua | |
1612 4.0 syntax highlighting, use this command: > | |
1611 | 1613 |
1612 :let lua_version = 4 | 1614 :let lua_version = 4 |
1613 | 1615 |
1614 If lua_version variable doesn't exist, it is set to 5. | 1616 If you are using Lua 5.0, use these commands: > |
1617 | |
1618 :let lua_version = 5 | |
1619 :let lua_subversion = 0 | |
1620 | |
1621 To restore highlighting for Lua 5.1: > | |
1622 | |
1623 :let lua_version = 5 | |
1624 :let lua_subversion = 1 | |
1615 | 1625 |
1616 | 1626 |
1617 MAIL *mail.vim* *ft-mail.vim* | 1627 MAIL *mail.vim* *ft-mail.vim* |
1618 | 1628 |
1619 Vim highlights all the standard elements of an email (headers, signatures, | 1629 Vim highlights all the standard elements of an email (headers, signatures, |
2763 all keywords given, also for options that come after a keyword. | 2773 all keywords given, also for options that come after a keyword. |
2764 These examples do exactly the same: > | 2774 These examples do exactly the same: > |
2765 :syntax keyword Type contained int long char | 2775 :syntax keyword Type contained int long char |
2766 :syntax keyword Type int long contained char | 2776 :syntax keyword Type int long contained char |
2767 :syntax keyword Type int long char contained | 2777 :syntax keyword Type int long char contained |
2768 < *E747* | 2778 < *E789* |
2769 When you have a keyword with an optional tail, like Ex commands in | 2779 When you have a keyword with an optional tail, like Ex commands in |
2770 Vim, you can put the optional characters inside [], to define all the | 2780 Vim, you can put the optional characters inside [], to define all the |
2771 variations at once: > | 2781 variations at once: > |
2772 :syntax keyword vimCommand ab[breviate] n[ext] | 2782 :syntax keyword vimCommand ab[breviate] n[ext] |
2773 < | 2783 < |