1- *syntax.txt* For Vim version 9.1. Last change: 2024 Sep 19
1+ *syntax.txt* For Vim version 9.1. Last change: 2024 Oct 06
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2106,7 +2106,8 @@ respectively.
21062106Javadoc is a program that takes special comments out of Java program files and
21072107creates HTML pages. The standard configuration will highlight this HTML code
21082108similarly to HTML files (see | html.vim | ). You can even add JavaScript and CSS
2109- inside this code (see below). The HTML rendering diverges as follows:
2109+ inside this code (see below). The HTML rendering and the Markdown rendering
2110+ diverge as follows:
21102111 1. The first sentence (all characters up to the first period `.` , which is
21112112 followed by a whitespace character or a line terminator, or up to the
21122113 first block tag, e.g. `@p aram` , `@r eturn` ) is colored as
@@ -2119,8 +2120,14 @@ inside this code (see below). The HTML rendering diverges as follows:
21192120 *Special special symbols
21202121 and some of their arguments are colored as
21212122 *Function function names.
2122- To turn this feature off, add the following line to your startup file: >
2123+ To turn this feature off for both HTML and Markdown, add the following line to
2124+ your startup file: >
21232125 :let g:java_ignore_javadoc = 1
2126+ Alternatively, only suppress HTML comments or Markdown comments: >
2127+ :let g:java_ignore_html = 1
2128+ :let g:java_ignore_markdown = 1
2129+
2130+ See | ft-java-plugin | for additional support available for Markdown comments.
21242131
21252132If you use the special Javadoc comment highlighting described above, you can
21262133also turn on special highlighting for JavaScript, Visual Basic scripts, and
@@ -2189,7 +2196,7 @@ optionality will be discontinued.
21892196
21902197
21912198JSON *json.vim* *ft-json-syntax* *g:vim_json_conceal*
2192- *g:vim_json_warnings*
2199+ *g:vim_json_warnings*
21932200
21942201The json syntax file provides syntax highlighting with conceal support by
21952202default. To disable concealment: >
@@ -3949,10 +3956,13 @@ mzscheme and embedded perl).
39493956Some folding is now supported with when 'foldmethod' is set to "syntax": >
39503957
39513958 g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
3952- g:vimsyn_folding =~ 'a' : augroups
3959+ g:vimsyn_folding =~ 'a' : fold augroups
3960+ g:vimsyn_folding =~ 'c' : fold Vim9 classes
3961+ g:vimsyn_folding =~ 'e' : fold Vim9 enums
39533962 g:vimsyn_folding =~ 'f' : fold functions
39543963 g:vimsyn_folding =~ 'h' : fold heredocs
3955- g:vimsyn_folding =~ 'H' : fold Vim9-script legacy headers
3964+ g:vimsyn_folding =~ 'i' : fold Vim9 interfaces
3965+ g:vimsyn_folding =~ 'H' : fold Vim9 legacy headers
39563966 g:vimsyn_folding =~ 'l' : fold Lua script
39573967 g:vimsyn_folding =~ 'm' : fold MzScheme script
39583968 g:vimsyn_folding =~ 'p' : fold Perl script
0 commit comments