Mercurial > vim
comparison runtime/doc/syntax.txt @ 3682:11d40fc82f11
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Thu, 12 Jul 2012 22:01:11 +0200 |
parents | 3482d151136b |
children | 9910cbff5f16 |
comparison
equal
deleted
inserted
replaced
3681:d9573e846b47 | 3682:11d40fc82f11 |
---|---|
1 *syntax.txt* For Vim version 7.3. Last change: 2012 Apr 06 | 1 *syntax.txt* For Vim version 7.3. Last change: 2012 Jun 13 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
648 | 648 |
649 The most flexible is to add a line in your assembly file containing: > | 649 The most flexible is to add a line in your assembly file containing: > |
650 asmsyntax=nasm | 650 asmsyntax=nasm |
651 Replace "nasm" with the name of the real assembly syntax. This line must be | 651 Replace "nasm" with the name of the real assembly syntax. This line must be |
652 one of the first five lines in the file. No non-white text must be | 652 one of the first five lines in the file. No non-white text must be |
653 immediately before or after this text. | 653 immediately before or after this text. Note that specifying asmsyntax=foo is |
654 equivalent to setting ft=foo in a |modeline|, and that in case of a conflict | |
655 between the two settings the one from the modeline will take precedence (in | |
656 particular, if you have ft=asm in the modeline, you will get the GNU syntax | |
657 highlighting regardless of what is specified as asmsyntax). | |
654 | 658 |
655 The syntax type can always be overruled for a specific buffer by setting the | 659 The syntax type can always be overruled for a specific buffer by setting the |
656 b:asmsyntax variable: > | 660 b:asmsyntax variable: > |
657 :let b:asmsyntax = "nasm" | 661 :let b:asmsyntax = "nasm" |
658 | 662 |
2907 g:vimsyn_folding =~ 'm' : fold mzscheme script | 2911 g:vimsyn_folding =~ 'm' : fold mzscheme script |
2908 g:vimsyn_folding =~ 'p' : fold perl script | 2912 g:vimsyn_folding =~ 'p' : fold perl script |
2909 g:vimsyn_folding =~ 'P' : fold python script | 2913 g:vimsyn_folding =~ 'P' : fold python script |
2910 g:vimsyn_folding =~ 'r' : fold ruby script | 2914 g:vimsyn_folding =~ 'r' : fold ruby script |
2911 g:vimsyn_folding =~ 't' : fold tcl script | 2915 g:vimsyn_folding =~ 't' : fold tcl script |
2912 | 2916 < |
2913 *g:vimsyn_noerror* | 2917 *g:vimsyn_noerror* |
2914 Not all error highlighting that syntax/vim.vim does may be correct; VimL is a | 2918 Not all error highlighting that syntax/vim.vim does may be correct; VimL is a |
2915 difficult language to highlight correctly. A way to suppress error | 2919 difficult language to highlight correctly. A way to suppress error |
2916 highlighting is to put the following line in your |vimrc|: > | 2920 highlighting is to put the following line in your |vimrc|: > |
2917 | 2921 |