Mercurial > vim
comparison runtime/doc/syntax.txt @ 18750:82a28df1e2d5
Update runtime files.
Commit: https://github.com/vim/vim/commit/91359014b359cf816bf943fe2c7d492996263def
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Nov 30 17:57:03 2019 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sat, 30 Nov 2019 18:00:05 +0100 |
parents | 99586852c2db |
children | 6848b809a26e |
comparison
equal
deleted
inserted
replaced
18749:8217e179eb58 | 18750:82a28df1e2d5 |
---|---|
1 *syntax.txt* For Vim version 8.1. Last change: 2019 Nov 20 | 1 *syntax.txt* For Vim version 8.1. Last change: 2019 Nov 29 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
964 | 964 |
965 | 965 |
966 C *c.vim* *ft-c-syntax* | 966 C *c.vim* *ft-c-syntax* |
967 | 967 |
968 A few things in C highlighting are optional. To enable them assign any value | 968 A few things in C highlighting are optional. To enable them assign any value |
969 to the respective variable. Example: > | 969 (including zero) to the respective variable. Example: > |
970 :let c_comment_strings = 1 | 970 :let c_comment_strings = 1 |
971 To disable them use ":unlet". Example: > | 971 :let c_no_bracket_error = 0 |
972 To disable them use `:unlet`. Example: > | |
972 :unlet c_comment_strings | 973 :unlet c_comment_strings |
974 Setting the value to zero doesn't work! | |
973 | 975 |
974 An alternative is to switch to the C++ highlighting: > | 976 An alternative is to switch to the C++ highlighting: > |
975 :set filetype=cpp | 977 :set filetype=cpp |
976 | 978 |
977 Variable Highlight ~ | 979 Variable Highlight ~ |
983 *c_no_bracket_error* don't highlight {}; inside [] as errors | 985 *c_no_bracket_error* don't highlight {}; inside [] as errors |
984 *c_no_curly_error* don't highlight {}; inside [] and () as errors; | 986 *c_no_curly_error* don't highlight {}; inside [] and () as errors; |
985 except { and } in first column | 987 except { and } in first column |
986 Default is to highlight them, otherwise you | 988 Default is to highlight them, otherwise you |
987 can't spot a missing ")". | 989 can't spot a missing ")". |
988 *c_curly_error* highlight a missing }; this forces syncing from the | 990 *c_curly_error* highlight a missing } by finding all pairs; this |
989 start of the file, can be slow | 991 forces syncing from the start of the file, can be slow |
990 *c_no_ansi* don't do standard ANSI types and constants | 992 *c_no_ansi* don't do standard ANSI types and constants |
991 *c_ansi_typedefs* ... but do standard ANSI types | 993 *c_ansi_typedefs* ... but do standard ANSI types |
992 *c_ansi_constants* ... but do standard ANSI constants | 994 *c_ansi_constants* ... but do standard ANSI constants |
993 *c_no_utf* don't highlight \u and \U in strings | 995 *c_no_utf* don't highlight \u and \U in strings |
994 *c_syntax_for_h* for *.h files use C syntax instead of C++ and use objc | 996 *c_syntax_for_h* for *.h files use C syntax instead of C++ and use objc |