|
1 |
| -*syntax.txt* For Vim version 9.1. Last change: 2025 Apr 15 |
| 1 | +*syntax.txt* For Vim version 9.1. Last change: 2025 Apr 28 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -1056,8 +1056,12 @@ Variable Highlight ~
|
1056 | 1056 | *c_ansi_typedefs* ... but do standard ANSI types
|
1057 | 1057 | *c_ansi_constants* ... but do standard ANSI constants
|
1058 | 1058 | *c_no_utf* don't highlight \u and \U in strings
|
1059 |
| -*c_syntax_for_h* for *.h files use C syntax instead of C++ and use objc |
1060 |
| - syntax instead of objcpp |
| 1059 | +*c_syntax_for_h* use C syntax for *.h files instead of C++/ObjC/ObjC++ |
| 1060 | + (NOTE: This variable is deprecated and no longer |
| 1061 | + necessary, as *.h files now default to C, unless the |
| 1062 | + file contains C++ or Objective-C syntax. If the |
| 1063 | + automated detection fails, the default filetype can |
| 1064 | + be adjusted using `g:filetype_h`.) |
1061 | 1065 | *c_no_if0* don't highlight "#if 0" blocks as comments
|
1062 | 1066 | *c_no_cformat* don't highlight %-formats in strings
|
1063 | 1067 | *c_no_c99* don't highlight C99 standard items
|
@@ -1116,8 +1120,11 @@ the C syntax file. See |c.vim| for all the settings that are available for C.
|
1116 | 1120 |
|
1117 | 1121 | By setting a variable you can tell Vim to use Ch syntax for *.h files, instead
|
1118 | 1122 | of C or C++: >
|
1119 |
| - :let ch_syntax_for_h = 1 |
| 1123 | + :let g:filetype_h = 'ch' |
1120 | 1124 |
|
| 1125 | +NOTE: In previous versions of Vim, the following (now-deprecated) variable was |
| 1126 | +used, but is no longer the preferred approach: > |
| 1127 | + :let ch_syntax_for_h = 1 |
1121 | 1128 |
|
1122 | 1129 | CHILL *chill.vim* *ft-chill-syntax*
|
1123 | 1130 |
|
@@ -2168,6 +2175,13 @@ line for any comments written in this way, and showing the contents of a first
|
2168 | 2175 | line otherwise, with >
|
2169 | 2176 | :let g:java_foldtext_show_first_or_second_line = 1
|
2170 | 2177 |
|
| 2178 | +HTML tags in Javadoc comments can additionally be folded by following the |
| 2179 | +instructions listed under |html-folding| and giving explicit consent with > |
| 2180 | + :let g:java_consent_to_html_syntax_folding = 1 |
| 2181 | +Do not default to this kind of folding unless ALL start tags and optional end |
| 2182 | +tags are balanced in Javadoc comments; otherwise, put up with creating runaway |
| 2183 | +folds that break syntax highlighting. |
| 2184 | + |
2171 | 2185 | Trailing whitespace characters or a run of space characters before a tab
|
2172 | 2186 | character can be marked as an error with >
|
2173 | 2187 | :let g:java_space_errors = 1
|
|
0 commit comments