|
1 |
| -*syntax.txt* For Vim version 9.1. Last change: 2024 Jun 09 |
| 1 | +*syntax.txt* For Vim version 9.1. Last change: 2024 Jun 13 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -937,10 +937,10 @@ Configuration
|
937 | 937 | The following variables control certain syntax highlighting features.
|
938 | 938 | You can add them to your .vimrc.
|
939 | 939 |
|
940 |
| -To enables TypeScript and TSX for ".astro" files (default "disable"): > |
| 940 | +To enable TypeScript and TSX for ".astro" files (default "disable"): > |
941 | 941 | let g:astro_typescript = "enable"
|
942 | 942 | <
|
943 |
| -To enables Stylus for ".astro" files (default "disable"): > |
| 943 | +To enable Stylus for ".astro" files (default "disable"): > |
944 | 944 | let g:astro_stylus = "enable"
|
945 | 945 | <
|
946 | 946 | NOTE: You need to install an external plugin to support stylus in astro files.
|
@@ -3802,39 +3802,42 @@ The g:vimsyn_embed option allows users to select what, if any, types of
|
3802 | 3802 | embedded script highlighting they wish to have. >
|
3803 | 3803 |
|
3804 | 3804 | g:vimsyn_embed == 0 : don't support any embedded scripts
|
3805 |
| - g:vimsyn_embed =~ 'l' : support embedded lua |
3806 |
| - g:vimsyn_embed =~ 'm' : support embedded mzscheme |
3807 |
| - g:vimsyn_embed =~ 'p' : support embedded perl |
3808 |
| - g:vimsyn_embed =~ 'P' : support embedded python |
3809 |
| - g:vimsyn_embed =~ 'r' : support embedded ruby |
3810 |
| - g:vimsyn_embed =~ 't' : support embedded tcl |
| 3805 | + g:vimsyn_embed =~ 'l' : support embedded Lua |
| 3806 | + g:vimsyn_embed =~ 'm' : support embedded MzScheme |
| 3807 | + g:vimsyn_embed =~ 'p' : support embedded Perl |
| 3808 | + g:vimsyn_embed =~ 'P' : support embedded Python |
| 3809 | + g:vimsyn_embed =~ 'r' : support embedded Ruby |
| 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 | 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. |
| 3814 | +types of embedded interpreters (e.g., g:vimsyn_embed = "mp" supports embedded |
| 3815 | +mzscheme and embedded perl). |
3816 | 3816 | *g:vimsyn_folding*
|
3817 |
| - |
3818 | 3817 | Some folding is now supported with when 'foldmethod' is set to "syntax": >
|
3819 | 3818 |
|
3820 | 3819 | g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
|
3821 | 3820 | g:vimsyn_folding =~ 'a' : augroups
|
3822 | 3821 | g:vimsyn_folding =~ 'f' : fold functions
|
3823 | 3822 | g:vimsyn_folding =~ 'h' : fold heredocs
|
3824 | 3823 | g:vimsyn_folding =~ 'H' : fold Vim9-script legacy headers
|
3825 |
| - g:vimsyn_folding =~ 'l' : fold lua script |
3826 |
| - g:vimsyn_folding =~ 'm' : fold mzscheme script |
3827 |
| - g:vimsyn_folding =~ 'p' : fold perl script |
3828 |
| - g:vimsyn_folding =~ 'P' : fold python script |
3829 |
| - g:vimsyn_folding =~ 'r' : fold ruby script |
3830 |
| - g:vimsyn_folding =~ 't' : fold tcl script |
| 3824 | + g:vimsyn_folding =~ 'l' : fold Lua script |
| 3825 | + g:vimsyn_folding =~ 'm' : fold MzScheme script |
| 3826 | + g:vimsyn_folding =~ 'p' : fold Perl script |
| 3827 | + g:vimsyn_folding =~ 'P' : fold Python script |
| 3828 | + g:vimsyn_folding =~ 'r' : fold Ruby script |
| 3829 | + g:vimsyn_folding =~ 't' : fold Tcl script |
3831 | 3830 | <
|
3832 | 3831 |
|
3833 | 3832 | 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. |
| 3833 | +to support folding of multiple syntax constructs (e.g., |
| 3834 | +g:vimsyn_folding = "fh" will enable folding of both functions and heredocs). |
| 3835 | + |
| 3836 | + *g:vimsyn_comment_strings* |
| 3837 | +By default, strings are highlighted inside comments. This may be disabled by |
| 3838 | +setting g:vimsyn_comment_strings to false. |
3836 | 3839 |
|
3837 |
| - *g:vimsyn_noerror* |
| 3840 | + *g:vimsyn_noerror* |
3838 | 3841 | Not all error highlighting that syntax/vim.vim does may be correct; Vim script
|
3839 | 3842 | is a difficult language to highlight correctly. A way to suppress error
|
3840 | 3843 | highlighting is to put the following line in your |vimrc|: >
|
@@ -5681,6 +5684,10 @@ PmenuExtraSel Popup menu: Selected item "extra text".
|
5681 | 5684 | PmenuSbar Popup menu: Scrollbar.
|
5682 | 5685 | *hl-PmenuThumb*
|
5683 | 5686 | PmenuThumb Popup menu: Thumb of the scrollbar.
|
| 5687 | + *hl-PmenuMatch* |
| 5688 | +PmenuMatch Popup menu: Matched text in normal item |
| 5689 | + *hl-PmenuMatchSel* |
| 5690 | +PmenuMatchSel Popup menu: Matched text in selected item |
5684 | 5691 | *hl-PopupNotification*
|
5685 | 5692 | PopupNotification
|
5686 | 5693 | Popup window created with |popup_notification()|. If not
|
|
0 commit comments