X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2ed0c9ad702531be15d197d6e296e2739c66e575..e1d8331302bfcd52dc6744a713dab2f79643e182:/test/syntax.vader diff --git a/test/syntax.vader b/test/syntax.vader index d2dbb13..98548a0 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -424,6 +424,19 @@ Execute (fenced code block syntax with alias language specifier): AssertEqual SyntaxOf('g:a'), 'vimVar' AssertEqual SyntaxOf('g:b'), 'vimVar' +Given markdown; +```csharp +var s = "foo"; +``` + +Execute (fenced code block languages setting): + let g:vim_markdown_fenced_languages = ['csharp=cs'] + source ../ftplugin/markdown.vim + let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax') + call b:func(0) + AssertEqual SyntaxOf('foo'), 'csString' + unlet g:vim_markdown_fenced_languages + Given markdown; ```a+b- code