comparison runtime/doc/syntax.txt @ 15334:9d3d7b0f4861

Update runtime files commit https://github.com/vim/vim/commit/4c05fa08c9739e307ddc88ac91ba6d208f1fd68e Author: Bram Moolenaar <Bram@vim.org> Date: Tue Jan 1 15:32:17 2019 +0100 Update runtime files
author Bram Moolenaar <Bram@vim.org>
date Tue, 01 Jan 2019 15:45:06 +0100
parents 97b40b4c6911
children a23c883685cb
comparison
equal deleted inserted replaced
15333:37502e631202 15334:9d3d7b0f4861
2700 later, and part earlier) adds. 2700 later, and part earlier) adds.
2701 2701
2702 2702
2703 RESTRUCTURED TEXT *rst.vim* *ft-rst-syntax* 2703 RESTRUCTURED TEXT *rst.vim* *ft-rst-syntax*
2704 2704
2705 You may set what syntax definitions should be used for code blocks via > 2705 Syntax highlighting is enabled for code blocks within the document for a
2706 select number of file types. See $VIMRUNTIME/syntax/rst.vim for the default
2707 syntax list.
2708
2709 To set a user-defined list of code block syntax highlighting: >
2706 let rst_syntax_code_list = ['vim', 'lisp', ...] 2710 let rst_syntax_code_list = ['vim', 'lisp', ...]
2707 < 2711
2712 To assign multiple code block types to a single syntax, define
2713 `rst_syntax_code_list` as a mapping: >
2714 let rst_syntax_code_list = {
2715 \ 'cpp' = ['cpp', 'c++'],
2716 \ 'bash' = ['bash', 'sh'],
2717 ...
2718 }
2719
2720 To use color highlighting for emphasis text: >
2721 let rst_use_emphasis_colors = 1
2722
2723 To enable folding of sections: >
2724 let rst_fold_enabled = 1
2725
2726 Note that folding can cause performance issues on some platforms.
2727
2708 2728
2709 REXX *rexx.vim* *ft-rexx-syntax* 2729 REXX *rexx.vim* *ft-rexx-syntax*
2710 2730
2711 If you notice highlighting errors while scrolling backwards, which are fixed 2731 If you notice highlighting errors while scrolling backwards, which are fixed
2712 when redrawing with CTRL-L, try setting the "rexx_minlines" internal variable 2732 when redrawing with CTRL-L, try setting the "rexx_minlines" internal variable