summaryrefslogtreecommitdiff
path: root/tests/lexers/notmuch
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2021-01-18 21:24:00 +0100
committerGeorg Brandl <georg@python.org>2021-01-18 22:08:36 +0100
commit2a3d3a7d5b9c60dedf6638d876161d9563faebcf (patch)
tree809c0b4a686db98f5954afa1944404cd9652c6b2 /tests/lexers/notmuch
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-examplefiles.tar.gz
Move test_examplefiles to new tests/lexers scheme.examplefiles
Diffstat (limited to 'tests/lexers/notmuch')
-rw-r--r--tests/lexers/notmuch/example.txt70
1 files changed, 70 insertions, 0 deletions
diff --git a/tests/lexers/notmuch/example.txt b/tests/lexers/notmuch/example.txt
new file mode 100644
index 00000000..dc633b24
--- /dev/null
+++ b/tests/lexers/notmuch/example.txt
@@ -0,0 +1,70 @@
+---input---
+ message{ id:5d0693e2.1c69fb81.d5fc9.1f6e@mx.google.com depth:0 match:1 excluded:0 filename:/home/user/mail/INBOX/new/1560712171_0.11014.blue,U=20254,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,
+ header{
+John Doe <john.doe@example.com> (1 mins. ago) (inbox unread)
+Subject: Hello world!
+From: john.doe@example.com
+Date: Sun, 16 Jun 2019 16:00:00 -0300
+ header}
+ body{
+ part{ ID: 1, Content-type: text/plain
+#!/bin/sh
+
+echo 'Hello world!'
+ part}
+ body}
+ message}
+
+---tokens---
+'\x0cmessage{ ' Keyword
+'id:' Name.Attribute
+'5d0693e2.1c69fb81.d5fc9.1f6e@mx.google.com' Literal.String
+' depth:' Name.Attribute
+'0' Literal.Number.Integer
+' match:' Name.Attribute
+'1' Literal.Number.Integer
+' excluded:' Name.Attribute
+'0' Literal.Number.Integer
+' filename:' Name.Attribute
+'/home/user/mail/INBOX/new/1560712171_0.11014.blue,U=20254,FMD5=7e33429f656f1e6e9d79b29c3f82c57e:2,\n' Literal.String
+
+'\x0cheader{\n' Keyword
+
+'John Doe <john.doe@example.com> ' Generic.Strong
+'(1 mins. ago)' Literal
+' (inbox unread)\n' Name.Tag
+
+'Subject: ' Name.Attribute
+'Hello world!\n' Literal.String
+
+'From: ' Name.Attribute
+'john.doe@example.com\n' Literal.String
+
+'Date: ' Name.Attribute
+'Sun, 16 Jun 2019 16:00:00 -0300\n' Literal.String
+
+'\x0cheader}\n' Keyword
+
+'\x0cbody{\n' Keyword
+
+'\x0cpart{ ' Keyword
+'ID: ' Name.Attribute
+'1' Literal.Number.Integer
+', ' Punctuation
+'Content-type: ' Name.Attribute
+'text/plain\n' Literal.String
+
+'#!/bin/sh\n' Comment.Hashbang
+
+'\n' Text
+
+'echo' Name.Builtin
+' ' Text
+"'Hello world!'" Literal.String.Single
+'\n' Text
+
+'\x0cpart}\n' Keyword
+
+'\x0cbody}\n' Keyword
+
+'\x0cmessage}\n' Keyword