comparison runtime/doc/syntax.txt @ 3256:ba708ee8d69d

Updated runtime files.
author Bram Moolenaar <bram@vim.org>
date Tue, 10 Jan 2012 14:55:01 +0100
parents 91e53bcb7946
children af1e8a1714c2
comparison
equal deleted inserted replaced
3255:3c04cfb72ad9 3256:ba708ee8d69d
1 *syntax.txt* For Vim version 7.3. Last change: 2011 Dec 30 1 *syntax.txt* For Vim version 7.3. Last change: 2012 Jan 04
2 2
3 3
4 VIM REFERENCE MANUAL by Bram Moolenaar 4 VIM REFERENCE MANUAL by Bram Moolenaar
5 5
6 6
756 c_no_utf don't highlight \u and \U in strings 756 c_no_utf don't highlight \u and \U in strings
757 c_syntax_for_h use C syntax for *.h files, instead of C++ 757 c_syntax_for_h use C syntax for *.h files, instead of C++
758 c_no_if0 don't highlight "#if 0" blocks as comments 758 c_no_if0 don't highlight "#if 0" blocks as comments
759 c_no_cformat don't highlight %-formats in strings 759 c_no_cformat don't highlight %-formats in strings
760 c_no_c99 don't highlight C99 standard items 760 c_no_c99 don't highlight C99 standard items
761 c_no_c11 don't highlight C11 standard items
761 762
762 When 'foldmethod' is set to "syntax" then /* */ comments and { } blocks will 763 When 'foldmethod' is set to "syntax" then /* */ comments and { } blocks will
763 become a fold. If you don't want comments to become a fold use: > 764 become a fold. If you don't want comments to become a fold use: >
764 :let c_no_comment_fold = 1 765 :let c_no_comment_fold = 1
765 "#if 0" blocks are also folded, unless: > 766 "#if 0" blocks are also folded, unless: >
1153 1154
1154 1155
1155 FORTRAN *fortran.vim* *ft-fortran-syntax* 1156 FORTRAN *fortran.vim* *ft-fortran-syntax*
1156 1157
1157 Default highlighting and dialect ~ 1158 Default highlighting and dialect ~
1158 Highlighting appropriate for f95 (Fortran 95) is used by default. This choice 1159 Highlighting appropriate for Fortran 2008 is used by default. This choice
1159 should be appropriate for most users most of the time because Fortran 95 is a 1160 should be appropriate for most users most of the time because Fortran 2008 is
1160 superset of Fortran 90 and almost a superset of Fortran 77. Support for 1161 almost a superset of previous versions (Fortran 2003, 95, 90, and 77).
1161 Fortran 2003 and Fortran 2008 features has been introduced and is
1162 automatically available in the default (f95) highlighting.
1163 1162
1164 Fortran source code form ~ 1163 Fortran source code form ~
1165 Fortran 9x code can be in either fixed or free source form. Note that the 1164 Fortran 9x code can be in either fixed or free source form. Note that the
1166 syntax highlighting will not be correct if the form is incorrectly set. 1165 syntax highlighting will not be correct if the form is incorrectly set.
1167 1166
1242 recognized, as will construct names at the end of a do, if, select or forall 1241 recognized, as will construct names at the end of a do, if, select or forall
1243 construct. 1242 construct.
1244 1243
1245 Non-default fortran dialects ~ 1244 Non-default fortran dialects ~
1246 The syntax script supports five Fortran dialects: f95, f90, f77, the Lahey 1245 The syntax script supports five Fortran dialects: f95, f90, f77, the Lahey
1247 subset elf90, and the Imagine1 subset F. 1246 subset elf90, and the Imagine1 subset F. However, these dialects are outdated;
1247 the next version of the syntax script will support only two variants: modern
1248 Fortran and legacy Fortran.
1248 1249
1249 If you use f77 with extensions, even common ones like do/enddo loops, do/while 1250 If you use f77 with extensions, even common ones like do/enddo loops, do/while
1250 loops and free source form that are supported by most f77 compilers including 1251 loops and free source form that are supported by most f77 compilers including
1251 g77 (GNU Fortran), then you will probably find the default highlighting 1252 g77 (GNU Fortran), then you will probably find the default highlighting
1252 satisfactory. However, if you use strict f77 with no extensions, not even free 1253 satisfactory. However, if you use strict f77 with no extensions, not even free