1
- *syntax.txt* For Vim version 9.1. Last change: 2024 May 31
1
+ *syntax.txt* For Vim version 9.1. Last change: 2024 Jun 09
2
2
3
3
4
4
VIM REFERENCE MANUAL by Bram Moolenaar
@@ -935,14 +935,14 @@ ASTRO *astro.vim* *ft-astro-syntax*
935
935
Configuration
936
936
937
937
The following variables control certain syntax highlighting features.
938
- You can add them to your .vimrc: >
938
+ You can add them to your .vimrc.
939
+
940
+ To enables TypeScript and TSX for ".astro" files (default "disable"): >
939
941
let g:astro_typescript = "enable"
940
942
<
941
- Enables TypeScript and TSX for ".astro" files. Default Value: "disable" >
943
+ To enables Stylus for ".astro" files (default "disable"): >
942
944
let g:astro_stylus = "enable"
943
945
<
944
- Enables Stylus for ".astro" files. Default Value: "disable"
945
-
946
946
NOTE: You need to install an external plugin to support stylus in astro files.
947
947
948
948
@@ -1909,7 +1909,7 @@ Note: Syntax folding might slow down syntax highlighting significantly,
1909
1909
especially for large files.
1910
1910
1911
1911
1912
- HTML/OS (by Aestiva ) *htmlos.vim* *ft-htmlos-syntax*
1912
+ HTML/OS (BY AESTIVA ) *htmlos.vim* *ft-htmlos-syntax*
1913
1913
1914
1914
The coloring scheme for HTML/OS works as follows:
1915
1915
@@ -3810,12 +3810,12 @@ embedded script highlighting they wish to have. >
3810
3810
g:vimsyn_embed =~ 't' : support embedded tcl
3811
3811
<
3812
3812
By default, g:vimsyn_embed is a string supporting interpreters that your vim
3813
- itself supports. Concatenate multiple characters to support multiple types
3814
- of embedded interpreters; ie. g:vimsyn_embed= "mp" supports embedded mzscheme
3815
- and embedded perl.
3813
+ itself supports. Concatenate the indicated characters to support multiple
3814
+ types of embedded interpreters; ie. g:vimsyn_embed = "mp" supports embedded
3815
+ mzscheme and embedded perl.
3816
3816
*g:vimsyn_folding*
3817
3817
3818
- Some folding is now supported with syntax/vim.vim : >
3818
+ Some folding is now supported with when 'foldmethod' is set to " syntax" : >
3819
3819
3820
3820
g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
3821
3821
g:vimsyn_folding =~ 'a' : augroups
@@ -3828,8 +3828,12 @@ Some folding is now supported with syntax/vim.vim: >
3828
3828
g:vimsyn_folding =~ 'P' : fold python script
3829
3829
g:vimsyn_folding =~ 'r' : fold ruby script
3830
3830
g:vimsyn_folding =~ 't' : fold tcl script
3831
- let g:vimsyn_folding = 'acfhlmpPrt'
3832
3831
<
3832
+
3833
+ By default, g:vimsyn_folding is unset. Concatenate the indicated characters
3834
+ to support folding of multiple syntax constructs; i.e.
3835
+ g:vimsyn_folding = "fh" will enable folding of both functions and heredocs.
3836
+
3833
3837
*g:vimsyn_noerror*
3834
3838
Not all error highlighting that syntax/vim.vim does may be correct; Vim script
3835
3839
is a difficult language to highlight correctly. A way to suppress error
0 commit comments