|
1 |
| -*syntax.txt* For Vim version 9.1. Last change: 2024 Apr 09 |
| 1 | +*syntax.txt* For Vim version 9.1. Last change: 2024 May 31 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar
|
@@ -930,8 +930,24 @@ nasm_loose_syntax unofficial parser allowed syntax not as Error
|
930 | 930 | nasm_ctx_outside_macro contexts outside macro not as Error
|
931 | 931 | nasm_no_warn potentially risky syntax not as ToDo
|
932 | 932 |
|
| 933 | +ASTRO *astro.vim* *ft-astro-syntax* |
933 | 934 |
|
934 |
| -ASPPERL and ASPVBS *ft-aspperl-syntax* *ft-aspvbs-syntax* |
| 935 | +Configuration |
| 936 | + |
| 937 | +The following variables control certain syntax highlighting features. |
| 938 | +You can add them to your .vimrc: > |
| 939 | + let g:astro_typescript = "enable" |
| 940 | +< |
| 941 | +Enables TypeScript and TSX for ".astro" files. Default Value: "disable" > |
| 942 | + let g:astro_stylus = "enable" |
| 943 | +< |
| 944 | +Enables Stylus for ".astro" files. Default Value: "disable" |
| 945 | + |
| 946 | +NOTE: You need to install an external plugin to support stylus in astro files. |
| 947 | + |
| 948 | + |
| 949 | +ASPPERL *ft-aspperl-syntax* |
| 950 | +ASPVBS *ft-aspvbs-syntax* |
935 | 951 |
|
936 | 952 | *.asp and *.asa files could be either Perl or Visual Basic script. Since it's
|
937 | 953 | hard to detect this you can set two global variables to tell Vim what you are
|
@@ -1467,9 +1483,9 @@ Two syntax highlighting files exist for Euphoria. One for Euphoria
|
1467 | 1483 | version 3.1.1, which is the default syntax highlighting file, and one for
|
1468 | 1484 | Euphoria version 4.0.5 or later.
|
1469 | 1485 |
|
1470 |
| -Euphoria version 3.1.1 (http://www.rapideuphoria.com/) is still necessary |
1471 |
| -for developing applications for the DOS platform, which Euphoria version 4 |
1472 |
| -(http://www.openeuphoria.org/) does not support. |
| 1486 | +Euphoria version 3.1.1 (http://www.rapideuphoria.com/ link seems dead) is |
| 1487 | +still necessary for developing applications for the DOS platform, which |
| 1488 | +Euphoria version 4 (http://www.openeuphoria.org/) does not support. |
1473 | 1489 |
|
1474 | 1490 | The following file extensions are auto-detected as Euphoria file type:
|
1475 | 1491 |
|
@@ -1526,7 +1542,8 @@ Elixir.
|
1526 | 1542 |
|
1527 | 1543 | FLEXWIKI *flexwiki.vim* *ft-flexwiki-syntax*
|
1528 | 1544 |
|
1529 |
| -FlexWiki is an ASP.NET-based wiki package available at http://www.flexwiki.com |
| 1545 | +FlexWiki is an ASP.NET-based wiki package which used to be available at |
| 1546 | +http://www.flexwiki.com |
1530 | 1547 | NOTE: This site currently doesn't work, on Wikipedia is mentioned that
|
1531 | 1548 | development stopped in 2009.
|
1532 | 1549 |
|
@@ -1999,15 +2016,25 @@ Function names are not highlighted, as the way to find functions depends on
|
1999 | 2016 | how you write Java code. The syntax file knows two possible ways to highlight
|
2000 | 2017 | functions:
|
2001 | 2018 |
|
2002 |
| -If you write function declarations that are always indented by either |
2003 |
| -a tab, 8 spaces or 2 spaces you may want to set > |
| 2019 | +If you write function declarations that are consistently indented by either |
| 2020 | +a tab, or a space . . . or eight space character(s), you may want to set > |
2004 | 2021 | :let java_highlight_functions="indent"
|
| 2022 | + :let java_highlight_functions="indent1" |
| 2023 | + :let java_highlight_functions="indent2" |
| 2024 | + :let java_highlight_functions="indent3" |
| 2025 | + :let java_highlight_functions="indent4" |
| 2026 | + :let java_highlight_functions="indent5" |
| 2027 | + :let java_highlight_functions="indent6" |
| 2028 | + :let java_highlight_functions="indent7" |
| 2029 | + :let java_highlight_functions="indent8" |
| 2030 | +Note that in terms of 'shiftwidth', this is the leftmost step of indentation. |
2005 | 2031 | However, if you follow the Java guidelines about how functions and classes are
|
2006 |
| -supposed to be named (with respect to upper and lowercase), use > |
| 2032 | +supposed to be named (with respect to upper- and lowercase) and there is any |
| 2033 | +amount of indentation, you may want to set > |
2007 | 2034 | :let java_highlight_functions="style"
|
2008 |
| -If both options do not work for you, but you would still want function |
2009 |
| -declarations to be highlighted create your own definitions by changing the |
2010 |
| -definitions in java.vim or by creating your own java.vim which includes the |
| 2035 | +If neither setting does work for you, but you would still want function |
| 2036 | +declarations to be highlighted, create your own definitions by changing the |
| 2037 | +definitions in java.vim or by creating your own java.vim that includes the |
2011 | 2038 | original one and then adds the code to highlight functions.
|
2012 | 2039 |
|
2013 | 2040 | In Java 1.1 the functions System.out.println() and System.err.println() should
|
@@ -2071,6 +2098,15 @@ To disable syntax highlighting of errors: >
|
2071 | 2098 | let g:vim_json_warnings = 0
|
2072 | 2099 |
|
2073 | 2100 |
|
| 2101 | +JQ *jq.vim* *jq_quote_highlight* *ft-jq-syntax* |
| 2102 | + |
| 2103 | +To disable numbers having their own color add the following to your vimrc: > |
| 2104 | + hi link jqNumber Normal |
| 2105 | +
|
| 2106 | +If you want quotes to have different highlighting than strings > |
| 2107 | + let g:jq_quote_highlight = 1 |
| 2108 | +
|
| 2109 | +
|
2074 | 2110 | LACE *lace.vim* *ft-lace-syntax*
|
2075 | 2111 |
|
2076 | 2112 | Lace (Language for Assembly of Classes in Eiffel) is case insensitive, but the
|
@@ -2670,8 +2706,8 @@ perl_string_as_statement, it will be highlighted as in the second line.
|
2670 | 2706 | The syncing has 3 options. The first two switch off some triggering of
|
2671 | 2707 | synchronization and should only be needed in case it fails to work properly.
|
2672 | 2708 | If while scrolling all of a sudden the whole screen changes color completely
|
2673 |
| -then you should try and switch off one of those. Let me know if you can |
2674 |
| -figure out the line that causes the mistake. |
| 2709 | +then you should try and switch off one of those. Let the developer know if |
| 2710 | +you can figure out the line that causes the mistake. |
2675 | 2711 |
|
2676 | 2712 | One triggers on "^\s*sub\s*" and the other on "^[$@%]" more or less. >
|
2677 | 2713 |
|
@@ -3012,6 +3048,13 @@ To highlight R code in knitr chunk headers, add to your |vimrc|: >
|
3012 | 3048 | let rrst_syn_hl_chunk = 1
|
3013 | 3049 |
|
3014 | 3050 |
|
| 3051 | +RASI *rasi.vim* *ft-rasi-syntax* |
| 3052 | + |
| 3053 | +Rasi stands for Rofi Advanced Style Information. It is used by the program |
| 3054 | +rofi to style the rendering of the search window. The language is heavily |
| 3055 | +inspired by CSS stylesheet. Files with the following extensions are recognized |
| 3056 | +as rasi files: .rasi. |
| 3057 | + |
3015 | 3058 | READLINE *readline.vim* *ft-readline-syntax*
|
3016 | 3059 |
|
3017 | 3060 | The readline library is primarily used by the BASH shell, which adds quite a
|
@@ -3728,6 +3771,19 @@ set "tf_minlines" to the value you desire. Example: >
|
3728 | 3771 |
|
3729 | 3772 | :let tf_minlines = your choice
|
3730 | 3773 | <
|
| 3774 | +TYPESCRIPT *typescript.vim* *ft-typescript-syntax* |
| 3775 | + *typescriptreact.vim* *ft-typescriptreact-syntax* |
| 3776 | + |
| 3777 | +There is one option to control the TypeScript syntax highlighting. |
| 3778 | + |
| 3779 | + *g:typescript_host_keyword* |
| 3780 | +When this variable is set to 1, host-specific APIs such as `addEventListener` |
| 3781 | +are highlighted. To disable set it to zero in your .vimrc: > |
| 3782 | +
|
| 3783 | + let g:typescript_host_keyword = 0 |
| 3784 | +< |
| 3785 | +The default value is 1. |
| 3786 | + |
3731 | 3787 | VIM *vim.vim* *ft-vim-syntax*
|
3732 | 3788 | *g:vimsyn_minlines* *g:vimsyn_maxlines*
|
3733 | 3789 | There is a trade-off between more accurate syntax highlighting versus screen
|
@@ -3764,12 +3820,15 @@ Some folding is now supported with syntax/vim.vim: >
|
3764 | 3820 | g:vimsyn_folding == 0 or doesn't exist: no syntax-based folding
|
3765 | 3821 | g:vimsyn_folding =~ 'a' : augroups
|
3766 | 3822 | g:vimsyn_folding =~ 'f' : fold functions
|
| 3823 | + g:vimsyn_folding =~ 'h' : fold heredocs |
| 3824 | + g:vimsyn_folding =~ 'H' : fold Vim9-script legacy headers |
3767 | 3825 | g:vimsyn_folding =~ 'l' : fold lua script
|
3768 | 3826 | g:vimsyn_folding =~ 'm' : fold mzscheme script
|
3769 | 3827 | g:vimsyn_folding =~ 'p' : fold perl script
|
3770 | 3828 | g:vimsyn_folding =~ 'P' : fold python script
|
3771 | 3829 | g:vimsyn_folding =~ 'r' : fold ruby script
|
3772 | 3830 | g:vimsyn_folding =~ 't' : fold tcl script
|
| 3831 | +let g:vimsyn_folding = 'acfhlmpPrt' |
3773 | 3832 | <
|
3774 | 3833 | *g:vimsyn_noerror*
|
3775 | 3834 | Not all error highlighting that syntax/vim.vim does may be correct; Vim script
|
@@ -4296,15 +4355,19 @@ Whether or not it is actually concealed depends on the value of the
|
4296 | 4355 | 'conceallevel' option. The 'concealcursor' option is used to decide whether
|
4297 | 4356 | concealable items in the current line are displayed unconcealed to be able to
|
4298 | 4357 | edit the line.
|
4299 |
| -Another way to conceal text is with |matchadd()|. |
| 4358 | + |
| 4359 | +Another way to conceal text is with |matchadd()|, but internally this works a |
| 4360 | +bit differently |syntax-vs-match|. |
4300 | 4361 |
|
4301 | 4362 | concealends *:syn-concealends*
|
4302 | 4363 |
|
4303 | 4364 | When the "concealends" argument is given, the start and end matches of
|
4304 | 4365 | the region, but not the contents of the region, are marked as concealable.
|
4305 | 4366 | Whether or not they are actually concealed depends on the setting on the
|
4306 | 4367 | 'conceallevel' option. The ends of a region can only be concealed separately
|
4307 |
| -in this way when they have their own highlighting via "matchgroup" |
| 4368 | +in this way when they have their own highlighting via "matchgroup". The |
| 4369 | +|synconcealed()| function can be used to retrieve information about conealed |
| 4370 | +items. |
4308 | 4371 |
|
4309 | 4372 | cchar *:syn-cchar*
|
4310 | 4373 | *E844*
|
|
0 commit comments