X-Git-Url: https://git.madduck.net/etc/vim.git/blobdiff_plain/2cbdce375bb945fecb3f110437b595dcc6dad566..1b37c6c879c6fcdd5f96ef12b95eeda2e0b416e7:/test/syntax.vader diff --git a/test/syntax.vader b/test/syntax.vader index 6f0a694..e63ce7e 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -98,6 +98,20 @@ Execute (multiple links on a line): AssertNotEqual SyntaxOf('c'), 'mkdLink' AssertNotEqual SyntaxOf('c'), 'mkdURL' +Given markdown; +[a](b) + +Execute (conceal link): + setlocal conceallevel=2 + AssertEqual synconcealed(1, 1)[0], 1 + AssertEqual synconcealed(1, 2)[0], 0 + AssertEqual synconcealed(1, 3)[0], 1 + AssertEqual synconcealed(1, 4)[0], 1 + AssertEqual synconcealed(1, 4)[0], 1 + AssertEqual synconcealed(1, 5)[0], 1 + AssertEqual synconcealed(1, 6)[0], 1 + setlocal conceallevel=0 + # Autolinks Given markdown; @@ -254,7 +268,7 @@ end ``` Execute (fenced code block syntax with a language specifier): - let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'Markdown_refresh_syntax') + let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax') call b:func(0) AssertEqual SyntaxOf('include'), 'cInclude' AssertEqual SyntaxOf('code'), 'mkdSnippetCPP' @@ -266,7 +280,7 @@ code ``` Execute (fenced code block syntax with an unknown language specifier): - let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'Markdown_refresh_syntax') + let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax') call b:func(0) AssertEqual SyntaxOf('code'), 'mkdSnippetA_B_'