mirror of
				https://github.com/amix/vimrc
				synced 2025-10-31 23:13:35 +08:00 
			
		
		
		
	Updated plugins
This commit is contained in:
		| @ -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; | ||||
|  | ||||
| @ -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 | ||||
|  | ||||
		Reference in New Issue
	
	Block a user
	 Amir Salihefendic
					Amir Salihefendic