Merge pull request #251 from jconroy77/markdown_nested_syntax

Automatic detection of nested syntaxes in markdown
This commit is contained in:
EinfachToll 2016-11-23 21:49:37 +01:00 committed by GitHub
commit 2c9df65644

View File

@ -1994,7 +1994,7 @@ endfunction "}}}
" vimwiki#base#detect_nested_syntax
function! vimwiki#base#detect_nested_syntax() "{{{
let last_word = '\v.*<(\w+)\s*$'
let lines = map(filter(getline(1, "$"), 'v:val =~ "{{{" && v:val =~ last_word'),
let lines = map(filter(getline(1, "$"), 'v:val =~ "\\%({{{\\|```\\)" && v:val =~ last_word'),
\ 'substitute(v:val, last_word, "\\=submatch(1)", "")')
let dict = {}
for elem in lines