X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/92ea844dcc5b0308bd0d1bcebae97cd657fa9f02..b30a4067f2865a5fd1edb28522bc927f8c9bb2a6:/test/syntax.vader?ds=sidebyside diff --git a/test/syntax.vader b/test/syntax.vader index e5618f3..8ac0a28 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -375,6 +375,21 @@ Execute (fenced code block syntax with a language specifier): AssertEqual SyntaxOf('code'), 'mkdSnippetCPP' AssertEqual SyntaxOf('def'), 'rubyDefine' +Given markdown; +```vim +let g:a = 1 +``` + +```viml +let g:b = 1 +``` + +Execute (fenced code block syntax with alias language specifier): + let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax') + call b:func(0) + AssertEqual SyntaxOf('g:a'), 'vimVar' + AssertEqual SyntaxOf('g:b'), 'vimVar' + Given markdown; ```a+b- code @@ -385,7 +400,6 @@ Execute (fenced code block syntax with an unknown language specifier): call b:func(0) AssertEqual SyntaxOf('code'), 'mkdSnippetA_B_' - Given markdown; ``` =