Mercurial > vim
comparison runtime/doc/syntax.txt @ 14637:0ecb909e3249
Update runtime files.
commit https://github.com/vim/vim/commit/fc65cabb15d0236bce001ad78e12a40511caf941
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 28 22:58:02 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 28 Aug 2018 23:00:08 +0200 |
parents | 2f7e67dd088c |
children | b178e2039b2d |
comparison
equal
deleted
inserted
replaced
14636:91eef21ff090 | 14637:0ecb909e3249 |
---|---|
1263 colour highlighting. | 1263 colour highlighting. |
1264 | 1264 |
1265 doxygen_end_punctuation '[.]' Set to regexp match for the ending | 1265 doxygen_end_punctuation '[.]' Set to regexp match for the ending |
1266 punctuation of brief | 1266 punctuation of brief |
1267 | 1267 |
1268 There are also some hilight groups worth mentioning as they can be useful in | 1268 There are also some highlight groups worth mentioning as they can be useful in |
1269 configuration. | 1269 configuration. |
1270 | 1270 |
1271 Highlight Effect ~ | 1271 Highlight Effect ~ |
1272 doxygenErrorComment The colour of an end-comment when missing | 1272 doxygenErrorComment The colour of an end-comment when missing |
1273 punctuation in a code, verbatim or dot section | 1273 punctuation in a code, verbatim or dot section |
2637 set to highlight commands only available in Quake 3 Arena: > | 2637 set to highlight commands only available in Quake 3 Arena: > |
2638 :let quake_is_quake3 = 1 | 2638 :let quake_is_quake3 = 1 |
2639 | 2639 |
2640 Any combination of these three variables is legal, but might highlight more | 2640 Any combination of these three variables is legal, but might highlight more |
2641 commands than are actually available to you by the game. | 2641 commands than are actually available to you by the game. |
2642 | |
2643 | |
2644 R *r.vim* *ft-r-syntax* | |
2645 | |
2646 The parsing of R code for syntax highlight starts 40 lines backwards, but you | |
2647 can set a different value in your |vimrc|. Example: > | |
2648 let r_syntax_minlines = 60 | |
2649 | |
2650 You can also turn off syntax highlighting of ROxygen: > | |
2651 let r_syntax_hl_roxygen = 0 | |
2652 | |
2653 enable folding of code delimited by parentheses, square brackets and curly | |
2654 braces: > | |
2655 let r_syntax_folding = 1 | |
2656 | |
2657 and highlight as functions all keywords followed by an opening parenthesis: > | |
2658 let r_syntax_fun_pattern = 1 | |
2659 | |
2660 | |
2661 R MARKDOWN *rmd.vim* *ft-rmd-syntax* | |
2662 | |
2663 To disable syntax highlight of YAML header, add to your |vimrc|: > | |
2664 let rmd_syn_hl_yaml = 0 | |
2665 | |
2666 To disable syntax highlighting of citation keys: > | |
2667 let rmd_syn_hl_citations = 0 | |
2668 | |
2669 To highlight R code in knitr chunk headers: > | |
2670 let rmd_syn_hl_chunk = 1 | |
2671 | |
2672 By default, chunks of R code will be highlighted following the rules of R | |
2673 language. If you want proper syntax highlighting of chunks of other languages, | |
2674 you should add them to either `markdown_fenced_languages` or | |
2675 `rmd_fenced_languages`. For example to properly highlight both R and Python, | |
2676 you may add this to your |vimrc|: > | |
2677 let rmd_fenced_languages = ['r', 'python'] | |
2678 | |
2679 | |
2680 R RESTRUCTURED TEXT *rrst.vim* *ft-rrst-syntax* | |
2681 | |
2682 To highlight R code in knitr chunk headers, add to your |vimrc|: > | |
2683 let rrst_syn_hl_chunk = 1 | |
2642 | 2684 |
2643 | 2685 |
2644 READLINE *readline.vim* *ft-readline-syntax* | 2686 READLINE *readline.vim* *ft-readline-syntax* |
2645 | 2687 |
2646 The readline library is primarily used by the BASH shell, which adds quite a | 2688 The readline library is primarily used by the BASH shell, which adds quite a |