Syntax: Add highlithing for YAML metadata block (#1287)
This commit is contained in:
+18
-1
@@ -2938,7 +2938,9 @@ color. (See autoload/vimwiki/vars.vim)
|
||||
|
||||
Syntax options are configured using the following pattern: >
|
||||
|
||||
let g:vimwiki_syntax_list['markdown']['bullet_type'] = ['*', '-', '+']
|
||||
let g:vimwiki_syntaxlocal_vars = {}
|
||||
let g:vimwiki_syntaxlocal_vars['markdown'] = []
|
||||
let g:vimwiki_syntaxlocal_vars['markdown']['bullet_type'] = ['*', '-', '+']
|
||||
|
||||
Where:
|
||||
- `markdown` is the syntax name. It can be (`default`, `markdown` or `media`)
|
||||
@@ -2946,6 +2948,16 @@ Where:
|
||||
- `['*', '-', '+']` is the option value
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
*yaml_metadata_block*
|
||||
|
||||
List of (start, end) regex region delimiters to define the YAML header
|
||||
More information in #1287 and https://pandoc.org/MANUAL.html#extension-yaml_metadata_block
|
||||
|
||||
Default: [['^---$', '^---$'], ['^\.\.\.$', '^\.\.\.$']]
|
||||
or similar with stricter anchors
|
||||
|
||||
|
||||
------------------------------------------------------------------------------
|
||||
12.5 Global Options *vimwiki-global-options*
|
||||
|
||||
@@ -3999,6 +4011,11 @@ master is retained as a legacy mirror of the dev branch.
|
||||
|
||||
This is somewhat experimental, and will probably be refined over time.
|
||||
|
||||
New:~
|
||||
* Issue #1287 Highlight YAML header with |yaml_metadata_block|
|
||||
configuration variable holding region delimiters
|
||||
|
||||
|
||||
2022.12.02~
|
||||
|
||||
New:~
|
||||
|
||||
Reference in New Issue
Block a user