Skip to content

Commit

Permalink
test: Add test for characters after code block lang
Browse files Browse the repository at this point in the history
  • Loading branch information
jrwrigh committed Jul 8, 2020
1 parent 154b1f8 commit dfd92dd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/syntax.vader
Original file line number Diff line number Diff line change
Expand Up @@ -739,12 +739,18 @@ def a
end
```

```ruby {linenos=table,hl_lines=[8,"15-17"],linenostart=199}
class b
end
```

Execute (fenced code block syntax with a language specifier):
let b:func = Markdown_GetFunc('vim-markdown/ftplugin/markdown.vim', 'MarkdownRefreshSyntax')
call b:func(0)
AssertEqual SyntaxOf('include'), 'cInclude'
AssertEqual SyntaxOf('code'), 'mkdSnippetCPP'
AssertEqual SyntaxOf('def'), 'rubyDefine'
AssertEqual SyntaxOf('class'), 'rubyClass'

Given markdown;
``` c++
Expand Down

0 comments on commit dfd92dd

Please sign in to comment.