X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/92ea844dcc5b0308bd0d1bcebae97cd657fa9f02..7ef40b4cc5f95752bdf3def42d67c3b1c0da7409:/test/syntax.vader?ds=inline 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; ``` =