1
0
mirror of https://github.com/amix/vimrc synced 2025-06-16 01:25:00 +08:00

Updated plugins

This commit is contained in:
Amir Salihefendic
2019-03-08 08:04:56 -03:00
parent 1d42b63013
commit f50b2142bc
356 changed files with 6183 additions and 3837 deletions

View File

@ -882,6 +882,23 @@ a
Execute (not code block in escaped code tag):
AssertNotEqual SyntaxOf('a'), 'mkdCode'
# Code quotes
Given markdown;
`a`
Execute (code in code quotes):
AssertEqual SyntaxOf('a'), 'mkdCode'
Given markdown;
`a\` b `c\` d
Execute (code quotes not escaped ending with backslash):
AssertEqual SyntaxOf('a\'), 'mkdCode'
AssertNotEqual SyntaxOf('b'), 'mkdCode'
AssertEqual SyntaxOf('c\'), 'mkdCode'
AssertNotEqual SyntaxOf('d'), 'mkdCode'
# Math
Given markdown;

View File

@ -11,14 +11,14 @@ filetype indent on
syntax on
function! Markdown_GetScriptID(fname) abort
let a:snlist = ''
redir => a:snlist
let l:snlist = ''
redir => l:snlist
silent! scriptnames
redir END
let a:mx = '^\s*\(\d\+\):\s*\(.*\)$'
for a:line in split(a:snlist, "\n")
if stridx(substitute(a:line, '\\', '/', 'g'), a:fname) >= 0
return substitute(a:line, a:mx, '\1', '')
let l:mx = '^\s*\(\d\+\):\s*\(.*\)$'
for l:line in split(l:snlist, "\n")
if stridx(substitute(l:line, '\\', '/', 'g'), a:fname) >= 0
return substitute(l:line, l:mx, '\1', '')
endif
endfor
endfunction