+ This is some text + Test1 + Test2 + Test3 +
+ + + + ++ Final text +
+ + + + + +Execute(Delete): + call DeleteFile('$HOME/testwiki/test_html_table.wiki') + call DeleteFile('$HOME/html/default/test_html_table.html') + +################################################# Given vimwiki (Table no heading {{{1): | header1 | header2 | | val1 | val2 | @@ -127,7 +173,6 @@ Execute(Delete): call DeleteFile('$HOME/testwiki/test_html_table.wiki') call DeleteFile('$HOME/html/default/test_html_table.html') - ################################################# Execute (Log): Log '#473: Syntax "local:" doesnt work as expected. #473' @@ -174,11 +219,11 @@ Do (Get Html body): Expect (Local link): - + - + @@ -226,7 +271,7 @@ Do (Get Html body): Expect (Plain Html): -# the whole default html file should be here as a base + the modifications +# the whole default html file should be here as a base + the modifications # from "Given" diff --git a/test/syntax.vader b/test/syntax.vader index 3fdd5d6..bbc56cc 100644 --- a/test/syntax.vader +++ b/test/syntax.vader @@ -171,6 +171,47 @@ Execute (Assert Syntax Header): AssertEqual SyntaxAt(5, 10), 'VimwikiHeader5' AssertEqual SyntaxAt(6, 10), 'VimwikiHeader6' +# 10 Comments {{{1 +############### + +Given vimwiki (%%): + %% This is a line comment + %% This is also a comment + +Execute (Set syntax default): + call SetSyntax('default') + +Execute (Assert Syntax VimwikiComment): + AssertEqual SyntaxAt(1, 1), 'VimwikiComment' + AssertEqual SyntaxAt(2, 4), 'VimwikiComment' + +Given vimwiki (%%+, +%%): + %%+ This + is a + multiline + comment +%% + %%+ This is a comment on one line +%% + %%+ One +%% Not a comment %%+ Two +%% Not a comment + +Execute (Set syntax default): + call SetSyntax('default') + +Execute (Assert Syntax VimwikiMultilineComment): + AssertEqual SyntaxAt(1, 1), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(1, 8), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(2, 1), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(3, 1), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(4, 1), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(5, 1), 'VimwikiMultilineComment' + + AssertEqual SyntaxAt(6, 1), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(6, 11), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(6, 12), '' + AssertEqual SyntaxAt(6, 26), '' + AssertEqual SyntaxAt(6, 27), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(6, 37), 'VimwikiMultilineComment' + AssertEqual SyntaxAt(6, 38), '' + AssertEqual SyntaxAt(6, 51), '' # 10 Code {{{1 # 10.1 Code Indent (4 spaces) {{{2