summaryrefslogtreecommitdiffstats
path: root/tests/snippets/md
diff options
context:
space:
mode:
Diffstat (limited to 'tests/snippets/md')
-rw-r--r--tests/snippets/md/test_bold_fenced_by_asterisk.txt15
-rw-r--r--tests/snippets/md/test_bold_fenced_by_underscore.txt15
-rw-r--r--tests/snippets/md/test_bulleted_list_1.txt14
-rw-r--r--tests/snippets/md/test_bulleted_list_2.txt14
-rw-r--r--tests/snippets/md/test_bulleted_list_3.txt14
-rw-r--r--tests/snippets/md/test_bulleted_list_4.txt19
-rw-r--r--tests/snippets/md/test_code_block_fenced_by_backticks.txt15
-rw-r--r--tests/snippets/md/test_code_block_with_language.txt16
-rw-r--r--tests/snippets/md/test_escape_italics.txt23
-rw-r--r--tests/snippets/md/test_inline_code.txt36
-rw-r--r--tests/snippets/md/test_inline_code_after_block.txt19
-rw-r--r--tests/snippets/md/test_inline_code_in_list.txt26
-rw-r--r--tests/snippets/md/test_invalid_bold.txt31
-rw-r--r--tests/snippets/md/test_invalid_italics.txt31
-rw-r--r--tests/snippets/md/test_italics_and_bold.txt21
-rw-r--r--tests/snippets/md/test_italics_fenced_by_asterisk.txt15
-rw-r--r--tests/snippets/md/test_italics_fenced_by_underscore.txt15
-rw-r--r--tests/snippets/md/test_italics_no_multiline.txt10
-rw-r--r--tests/snippets/md/test_links.txt23
-rw-r--r--tests/snippets/md/test_mentions.txt10
-rw-r--r--tests/snippets/md/test_numbered_list.txt14
-rw-r--r--tests/snippets/md/test_quote.txt10
-rw-r--r--tests/snippets/md/test_reference_style_links.txt18
-rw-r--r--tests/snippets/md/test_strikethrough.txt9
-rw-r--r--tests/snippets/md/test_task_list.txt34
-rw-r--r--tests/snippets/md/test_topics.txt10
26 files changed, 477 insertions, 0 deletions
diff --git a/tests/snippets/md/test_bold_fenced_by_asterisk.txt b/tests/snippets/md/test_bold_fenced_by_asterisk.txt
new file mode 100644
index 0000000..25c899d
--- /dev/null
+++ b/tests/snippets/md/test_bold_fenced_by_asterisk.txt
@@ -0,0 +1,15 @@
+---input---
+**bold**
+
+(**bold**)
+
+---tokens---
+'**bold**' Generic.Strong
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'(' Text
+'**bold**' Generic.Strong
+')' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_bold_fenced_by_underscore.txt b/tests/snippets/md/test_bold_fenced_by_underscore.txt
new file mode 100644
index 0000000..49c9110
--- /dev/null
+++ b/tests/snippets/md/test_bold_fenced_by_underscore.txt
@@ -0,0 +1,15 @@
+---input---
+__bold__
+
+(__bold__)
+
+---tokens---
+'__bold__' Generic.Strong
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'(' Text
+'__bold__' Generic.Strong
+')' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_bulleted_list_1.txt b/tests/snippets/md/test_bulleted_list_1.txt
new file mode 100644
index 0000000..8da212c
--- /dev/null
+++ b/tests/snippets/md/test_bulleted_list_1.txt
@@ -0,0 +1,14 @@
+---input---
+* foo
+* bar
+
+---tokens---
+'*' Keyword
+' ' Text.Whitespace
+'foo' Text
+'\n' Text.Whitespace
+
+'*' Keyword
+' ' Text.Whitespace
+'bar' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_bulleted_list_2.txt b/tests/snippets/md/test_bulleted_list_2.txt
new file mode 100644
index 0000000..040b908
--- /dev/null
+++ b/tests/snippets/md/test_bulleted_list_2.txt
@@ -0,0 +1,14 @@
+---input---
+- foo
+- bar
+
+---tokens---
+'-' Keyword
+' ' Text.Whitespace
+'foo' Text
+'\n' Text.Whitespace
+
+'-' Keyword
+' ' Text.Whitespace
+'bar' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_bulleted_list_3.txt b/tests/snippets/md/test_bulleted_list_3.txt
new file mode 100644
index 0000000..a59d5f7
--- /dev/null
+++ b/tests/snippets/md/test_bulleted_list_3.txt
@@ -0,0 +1,14 @@
+---input---
+* *foo*
+* bar
+
+---tokens---
+'*' Keyword
+' ' Text.Whitespace
+'*foo*' Generic.Emph
+'\n' Text.Whitespace
+
+'*' Keyword
+' ' Text.Whitespace
+'bar' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_bulleted_list_4.txt b/tests/snippets/md/test_bulleted_list_4.txt
new file mode 100644
index 0000000..111f9cf
--- /dev/null
+++ b/tests/snippets/md/test_bulleted_list_4.txt
@@ -0,0 +1,19 @@
+---input---
+```
+code
+```
+* *foo*
+* bar
+
+---tokens---
+'```\ncode\n```\n' Literal.String.Backtick
+
+'*' Keyword
+' ' Text.Whitespace
+'*foo*' Generic.Emph
+'\n' Text.Whitespace
+
+'*' Keyword
+' ' Text.Whitespace
+'bar' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_code_block_fenced_by_backticks.txt b/tests/snippets/md/test_code_block_fenced_by_backticks.txt
new file mode 100644
index 0000000..4f8fefa
--- /dev/null
+++ b/tests/snippets/md/test_code_block_fenced_by_backticks.txt
@@ -0,0 +1,15 @@
+---input---
+```
+code
+```
+
+```
+multi
+`line`
+code
+```
+
+---tokens---
+'```\ncode\n```\n' Literal.String.Backtick
+
+'\n```\nmulti\n`line`\ncode\n```\n' Literal.String.Backtick
diff --git a/tests/snippets/md/test_code_block_with_language.txt b/tests/snippets/md/test_code_block_with_language.txt
new file mode 100644
index 0000000..41f2563
--- /dev/null
+++ b/tests/snippets/md/test_code_block_with_language.txt
@@ -0,0 +1,16 @@
+---input---
+```python
+import this
+```
+
+---tokens---
+'```' Literal.String.Backtick
+'python' Literal.String.Backtick
+'\n' Text
+
+'import' Keyword.Namespace
+' ' Text
+'this' Name.Namespace
+'\n' Text.Whitespace
+
+'```\n' Literal.String.Backtick
diff --git a/tests/snippets/md/test_escape_italics.txt b/tests/snippets/md/test_escape_italics.txt
new file mode 100644
index 0000000..42e1cb4
--- /dev/null
+++ b/tests/snippets/md/test_escape_italics.txt
@@ -0,0 +1,23 @@
+---input---
+\*no italics\*
+
+\_ no italics \_
+
+---tokens---
+'\\*' Text
+'no' Text
+' ' Text
+'italics' Text
+'\\*' Text
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'\\_' Text
+' ' Text
+'no' Text
+' ' Text
+'italics' Text
+' ' Text
+'\\_' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_inline_code.txt b/tests/snippets/md/test_inline_code.txt
new file mode 100644
index 0000000..c9a3964
--- /dev/null
+++ b/tests/snippets/md/test_inline_code.txt
@@ -0,0 +1,36 @@
+---input---
+code: `code`
+
+ `**code**`
+
+(`code`)
+
+code (`in brackets`)
+
+---tokens---
+'code:' Text
+' ' Text
+'`code`' Literal.String.Backtick
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+' ' Text
+'`**code**`' Literal.String.Backtick
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'(' Text
+'`code`' Literal.String.Backtick
+')' Text
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'code' Text
+' ' Text
+'(' Text
+'`in brackets`' Literal.String.Backtick
+')' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_inline_code_after_block.txt b/tests/snippets/md/test_inline_code_after_block.txt
new file mode 100644
index 0000000..e1f704b
--- /dev/null
+++ b/tests/snippets/md/test_inline_code_after_block.txt
@@ -0,0 +1,19 @@
+---input---
+```
+code
+```
+* nocode
+* `code`
+
+---tokens---
+'```\ncode\n```\n' Literal.String.Backtick
+
+'*' Keyword
+' ' Text.Whitespace
+'nocode' Text
+'\n' Text.Whitespace
+
+'*' Keyword
+' ' Text.Whitespace
+'`code`' Literal.String.Backtick
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_inline_code_in_list.txt b/tests/snippets/md/test_inline_code_in_list.txt
new file mode 100644
index 0000000..9cd8aa0
--- /dev/null
+++ b/tests/snippets/md/test_inline_code_in_list.txt
@@ -0,0 +1,26 @@
+---input---
+* `code`
+
+- `code`
+
+1. `code`
+
+---tokens---
+'*' Keyword
+' ' Text.Whitespace
+'`code`' Literal.String.Backtick
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'-' Keyword
+' ' Text.Whitespace
+'`code`' Literal.String.Backtick
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'1.' Keyword
+' ' Text
+'`code`' Literal.String.Backtick
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_invalid_bold.txt b/tests/snippets/md/test_invalid_bold.txt
new file mode 100644
index 0000000..6a5db6a
--- /dev/null
+++ b/tests/snippets/md/test_invalid_bold.txt
@@ -0,0 +1,31 @@
+---input---
+**no bold__
+
+__no bold**
+
+*no bold*
+
+_no bold_
+
+---tokens---
+'**no' Text
+' ' Text
+'bold__' Text
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'__no' Text
+' ' Text
+'bold**' Text
+'\n' Text.Whitespace
+
+'\n' Text
+
+'*no bold*' Generic.Emph
+'\n' Text.Whitespace
+
+'\n' Text
+
+'_no bold_' Generic.Emph
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_invalid_italics.txt b/tests/snippets/md/test_invalid_italics.txt
new file mode 100644
index 0000000..28acb5d
--- /dev/null
+++ b/tests/snippets/md/test_invalid_italics.txt
@@ -0,0 +1,31 @@
+---input---
+*no italics_
+
+_no italics*
+
+**no italics**
+
+__no italics__
+
+---tokens---
+'*no' Text
+' ' Text
+'italics_' Text
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'_no' Text
+' ' Text
+'italics*' Text
+'\n' Text.Whitespace
+
+'\n' Text
+
+'**no italics**' Generic.Strong
+'\n' Text.Whitespace
+
+'\n' Text
+
+'__no italics__' Generic.Strong
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_italics_and_bold.txt b/tests/snippets/md/test_italics_and_bold.txt
new file mode 100644
index 0000000..bb2bf4f
--- /dev/null
+++ b/tests/snippets/md/test_italics_and_bold.txt
@@ -0,0 +1,21 @@
+---input---
+**bold** and *italics*
+
+*italics* and **bold**
+
+---tokens---
+'**bold**' Generic.Strong
+' ' Text
+'and' Text
+' ' Text
+'*italics*' Generic.Emph
+'\n' Text.Whitespace
+
+'\n' Text
+
+'*italics*' Generic.Emph
+' ' Text
+'and' Text
+' ' Text
+'**bold**' Generic.Strong
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_italics_fenced_by_asterisk.txt b/tests/snippets/md/test_italics_fenced_by_asterisk.txt
new file mode 100644
index 0000000..cd8775e
--- /dev/null
+++ b/tests/snippets/md/test_italics_fenced_by_asterisk.txt
@@ -0,0 +1,15 @@
+---input---
+*italics*
+
+(*italics*)
+
+---tokens---
+'*italics*' Generic.Emph
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'(' Text
+'*italics*' Generic.Emph
+')' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_italics_fenced_by_underscore.txt b/tests/snippets/md/test_italics_fenced_by_underscore.txt
new file mode 100644
index 0000000..5f57756
--- /dev/null
+++ b/tests/snippets/md/test_italics_fenced_by_underscore.txt
@@ -0,0 +1,15 @@
+---input---
+_italics_
+
+(_italics_)
+
+---tokens---
+'_italics_' Generic.Emph
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'(' Text
+'_italics_' Generic.Emph
+')' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_italics_no_multiline.txt b/tests/snippets/md/test_italics_no_multiline.txt
new file mode 100644
index 0000000..2657ed1
--- /dev/null
+++ b/tests/snippets/md/test_italics_no_multiline.txt
@@ -0,0 +1,10 @@
+---input---
+*no
+italics*
+
+---tokens---
+'*no' Text
+'\n' Text.Whitespace
+
+'italics*' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_links.txt b/tests/snippets/md/test_links.txt
new file mode 100644
index 0000000..9fc46e8
--- /dev/null
+++ b/tests/snippets/md/test_links.txt
@@ -0,0 +1,23 @@
+---input---
+[text](link)
+
+![Image of foo](https://bar.baz)
+
+---tokens---
+'[' Text
+'text' Name.Tag
+']' Text
+'(' Text
+'link' Name.Attribute
+')' Text
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'![' Text
+'Image of foo' Name.Tag
+']' Text
+'(' Text
+'https://bar.baz' Name.Attribute
+')' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_mentions.txt b/tests/snippets/md/test_mentions.txt
new file mode 100644
index 0000000..a2def5c
--- /dev/null
+++ b/tests/snippets/md/test_mentions.txt
@@ -0,0 +1,10 @@
+---input---
+note for @me:
+
+---tokens---
+'note' Text
+' ' Text
+'for' Text
+' ' Text
+'@me:' Name.Entity
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_numbered_list.txt b/tests/snippets/md/test_numbered_list.txt
new file mode 100644
index 0000000..1384d6b
--- /dev/null
+++ b/tests/snippets/md/test_numbered_list.txt
@@ -0,0 +1,14 @@
+---input---
+1. foo
+2. bar
+
+---tokens---
+'1.' Keyword
+' ' Text
+'foo' Text
+'\n' Text.Whitespace
+
+'2.' Keyword
+' ' Text
+'bar' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_quote.txt b/tests/snippets/md/test_quote.txt
new file mode 100644
index 0000000..cc64ec2
--- /dev/null
+++ b/tests/snippets/md/test_quote.txt
@@ -0,0 +1,10 @@
+---input---
+> a
+> quote
+
+---tokens---
+'> ' Keyword
+'a\n' Generic.Emph
+
+'> ' Keyword
+'quote\n' Generic.Emph
diff --git a/tests/snippets/md/test_reference_style_links.txt b/tests/snippets/md/test_reference_style_links.txt
new file mode 100644
index 0000000..813cef3
--- /dev/null
+++ b/tests/snippets/md/test_reference_style_links.txt
@@ -0,0 +1,18 @@
+---input---
+[an example][id]
+[id]: http://example.com
+
+---tokens---
+'[' Text
+'an example' Name.Tag
+']' Text
+'[' Text
+'id' Name.Label
+']' Text
+'\n' Text.Whitespace
+
+'[' Text
+'id' Name.Label
+']: ' Text
+'http://example.com' Name.Attribute
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_strikethrough.txt b/tests/snippets/md/test_strikethrough.txt
new file mode 100644
index 0000000..483c63a
--- /dev/null
+++ b/tests/snippets/md/test_strikethrough.txt
@@ -0,0 +1,9 @@
+---input---
+~~striked~~not striked
+
+---tokens---
+'~~striked~~' Generic.Deleted
+'not' Text
+' ' Text
+'striked' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_task_list.txt b/tests/snippets/md/test_task_list.txt
new file mode 100644
index 0000000..7a64506
--- /dev/null
+++ b/tests/snippets/md/test_task_list.txt
@@ -0,0 +1,34 @@
+---input---
+- [ ] sample task
+
+* [ ] sample task
+
+ * [ ] sample task
+
+---tokens---
+'- ' Keyword
+'[ ]' Keyword
+' ' Text
+'sample' Text
+' ' Text
+'task' Text
+'\n' Text.Whitespace
+
+'\n' Text.Whitespace
+
+'* ' Keyword
+'[ ]' Keyword
+' ' Text
+'sample' Text
+' ' Text
+'task' Text
+'\n' Text.Whitespace
+
+'\n ' Text.Whitespace
+'* ' Keyword
+'[ ]' Keyword
+' ' Text
+'sample' Text
+' ' Text
+'task' Text
+'\n' Text.Whitespace
diff --git a/tests/snippets/md/test_topics.txt b/tests/snippets/md/test_topics.txt
new file mode 100644
index 0000000..18029cc
--- /dev/null
+++ b/tests/snippets/md/test_topics.txt
@@ -0,0 +1,10 @@
+---input---
+message to #you:
+
+---tokens---
+'message' Text
+' ' Text
+'to' Text
+' ' Text
+'#you:' Name.Entity
+'\n' Text.Whitespace