Skip to content

Commit

Permalink
Syntax: Add tests for fenced code blocks with TS/TSX (ST4-only)
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Jan 23, 2022
1 parent b252e88 commit 1ebabea
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions tests/syntax_test_markdown.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 1ebabea

Please sign in to comment.