diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2019-07-29 02:59:32 +0200 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2019-07-29 20:50:07 +0200 |
commit | ef1f1907cc4f9c74fc415d7411aacf8c61a4a38f (patch) | |
tree | a64c7538e93005d367e625dd2a6d827926d2fa87 /runtime/doc/syntax.txt | |
parent | 4cab90ad8c2f82dbdea71cf240384c5c3ae92d4d (diff) | |
download | rneovim-ef1f1907cc4f9c74fc415d7411aacf8c61a4a38f.tar.gz rneovim-ef1f1907cc4f9c74fc415d7411aacf8c61a4a38f.tar.bz2 rneovim-ef1f1907cc4f9c74fc415d7411aacf8c61a4a38f.zip |
vim-patch:4c05fa08c973
Update runtime files
https://github.com/vim/vim/commit/4c05fa08c9739e307ddc88ac91ba6d208f1fd68e
Diffstat (limited to 'runtime/doc/syntax.txt')
-rw-r--r-- | runtime/doc/syntax.txt | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/runtime/doc/syntax.txt b/runtime/doc/syntax.txt index b710829d40..208e8ea48d 100644 --- a/runtime/doc/syntax.txt +++ b/runtime/doc/syntax.txt @@ -2670,9 +2670,29 @@ later, and part earlier) adds. RESTRUCTURED TEXT *rst.vim* *ft-rst-syntax* -You may set what syntax definitions should be used for code blocks via > +Syntax highlighting is enabled for code blocks within the document for a +select number of file types. See $VIMRUNTIME/syntax/rst.vim for the default +syntax list. + +To set a user-defined list of code block syntax highlighting: > let rst_syntax_code_list = ['vim', 'lisp', ...] -< + +To assign multiple code block types to a single syntax, define +`rst_syntax_code_list` as a mapping: > + let rst_syntax_code_list = { + \ 'cpp' = ['cpp', 'c++'], + \ 'bash' = ['bash', 'sh'], + ... + } + +To use color highlighting for emphasis text: > + let rst_use_emphasis_colors = 1 + +To enable folding of sections: > + let rst_fold_enabled = 1 + +Note that folding can cause performance issues on some platforms. + REXX *rexx.vim* *ft-rexx-syntax* |