X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/a5786589c3c49199828d63ea403238ca95531d0b..824e85c3e7b40466c2a375e37c7e81a0584c7a79:/test/syntax.vader?ds=inline diff --git a/test/syntax.vader b/test/syntax.vader index d73062d..105e595 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -223,6 +223,34 @@ Execute (indent code blocks after list): AssertNotEqual SyntaxOf('b'), 'mkdCode' AssertEqual SyntaxOf('c'), 'mkdCode' +Given markdown; +```c++ +#include +code +``` + +```ruby +def a +end +``` + +Execute (fenced code block syntax with a language specifier): + let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'Markdown_refresh_syntax') + call b:func(0) + AssertEqual SyntaxOf('include'), 'cInclude' + AssertEqual SyntaxOf('code'), 'mkdSnippetCPP' + AssertEqual SyntaxOf('def'), 'rubyDefine' + +Given markdown; +```a+b- +code +``` + +Execute (fenced code block syntax with an unknown language specifier): + let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'Markdown_refresh_syntax') + call b:func(0) + AssertEqual SyntaxOf('code'), 'mkdSnippetA_B_' + # Math Given markdown;