From 1ebabea1e60baf9cedad76cbae7007eec6a0abdb Mon Sep 17 00:00:00 2001 From: DeathAxe Date: Thu, 6 Jan 2022 20:57:06 +0100 Subject: [PATCH] Syntax: Add tests for fenced code blocks with TS/TSX (ST4-only) --- tests/syntax_test_markdown.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/tests/syntax_test_markdown.md b/tests/syntax_test_markdown.md index 2f7f8912..e682f213 100644 --- a/tests/syntax_test_markdown.md +++ b/tests/syntax_test_markdown.md @@ -1956,6 +1956,20 @@ FROM TableName | <- meta.code-fence.definition.end.sql.markdown-gfm punctuation.definition.raw.code-fence.end.markdown |^^ meta.code-fence.definition.end.sql.markdown-gfm punctuation.definition.raw.code-fence.end.markdown +```ts +declare type foo = 'bar' +| <- markup.raw.code-fence.typescript.markdown-gfm source.ts +``` +| <- meta.code-fence.definition.end.typescript.markdown-gfm punctuation.definition.raw.code-fence.end.markdown +|^^ meta.code-fence.definition.end.typescript.markdown-gfm punctuation.definition.raw.code-fence.end.markdown + +```tsx + +| <- markup.raw.code-fence.tsx.markdown-gfm +``` +| <- meta.code-fence.definition.end.tsx.markdown-gfm punctuation.definition.raw.code-fence.end.markdown +|^^ meta.code-fence.definition.end.tsx.markdown-gfm punctuation.definition.raw.code-fence.end.markdown + ```xml |^^^^^ meta.code-fence.definition.begin.xml | ^^^ constant.other.language-name