summaryrefslogtreecommitdiff
path: root/tests/examplefiles/rnc
diff options
context:
space:
mode:
authorOleh Prypin <oleh@pryp.in>2021-01-20 10:48:45 +0100
committerGitHub <noreply@github.com>2021-01-20 10:48:45 +0100
commit6f4309217326430145564ae8b1bb393ea684f39f (patch)
treebf4025a5e709426dc927c4afc4fd2286f8450ed9 /tests/examplefiles/rnc
parentf0445be718da83541ea3401aad882f3937147263 (diff)
downloadpygments-git-6f4309217326430145564ae8b1bb393ea684f39f.tar.gz
Also add auto-updatable output-based tests to examplefiles (#1689)
Co-authored-by: Georg Brandl <georg@python.org>
Diffstat (limited to 'tests/examplefiles/rnc')
-rw-r--r--tests/examplefiles/rnc/rnc_example.rnc33
-rw-r--r--tests/examplefiles/rnc/rnc_example.rnc.output403
2 files changed, 436 insertions, 0 deletions
diff --git a/tests/examplefiles/rnc/rnc_example.rnc b/tests/examplefiles/rnc/rnc_example.rnc
new file mode 100644
index 00000000..a1440302
--- /dev/null
+++ b/tests/examplefiles/rnc/rnc_example.rnc
@@ -0,0 +1,33 @@
+# This is a sample RNC file from the tutorial for the 2003 Working Draft
+# http://relaxng.org/compact-tutorial-20030326.html
+
+element html {
+ element head {
+ element title { text }
+ },
+ element body {
+ element table {
+ attribute class { "addressBook" },
+ element tr {
+ attribute class { "card" },
+ element td {
+ attribute class { "name" },
+ mixed {
+ element span {
+ attribute class { "givenName" },
+ text
+ }?,
+ element span {
+ attribute class { "familyName" },
+ text
+ }?
+ }
+ },
+ element td {
+ attribute class { "email" },
+ text
+ }
+ }+
+ }
+ }
+}
diff --git a/tests/examplefiles/rnc/rnc_example.rnc.output b/tests/examplefiles/rnc/rnc_example.rnc.output
new file mode 100644
index 00000000..59441b94
--- /dev/null
+++ b/tests/examplefiles/rnc/rnc_example.rnc.output
@@ -0,0 +1,403 @@
+'# This is a sample RNC file from the tutorial for the 2003 Working Draft' Comment.Single
+'\n' Text
+
+'# http://relaxng.org/compact-tutorial-20030326.html' Comment.Single
+'\n' Text
+
+'\n' Text
+
+'element' Keyword.Declaration
+' html ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' head ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' title ' Name.Variable
+'{' Punctuation
+' ' Text
+'text' Keyword.Type
+' ' Text
+'}' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' body ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' table ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'attribute' Keyword.Declaration
+' class ' Name.Variable
+'{' Punctuation
+' ' Text
+'"addressBook"' Literal.String.Double
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' tr ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'attribute' Keyword.Declaration
+' class ' Name.Variable
+'{' Punctuation
+' ' Text
+'"card"' Literal.String.Double
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' td ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'attribute' Keyword.Declaration
+' class ' Name.Variable
+'{' Punctuation
+' ' Text
+'"name"' Literal.String.Double
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'mixed' Keyword.Declaration
+' ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' span ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'attribute' Keyword.Declaration
+' class ' Name.Variable
+'{' Punctuation
+' ' Text
+'"givenName"' Literal.String.Double
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'text' Keyword.Type
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'}' Punctuation
+'?' Operator
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' span ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'attribute' Keyword.Declaration
+' class ' Name.Variable
+'{' Punctuation
+' ' Text
+'"familyName"' Literal.String.Double
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'text' Keyword.Type
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'}' Punctuation
+'?' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'}' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'element' Keyword.Declaration
+' td ' Name.Variable
+'{' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'attribute' Keyword.Declaration
+' class ' Name.Variable
+'{' Punctuation
+' ' Text
+'"email"' Literal.String.Double
+' ' Text
+'}' Punctuation
+',' Operator
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'text' Keyword.Type
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'}' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'}' Punctuation
+'+' Text
+'\n' Text
+
+' ' Text
+' ' Text
+' ' Text
+' ' Text
+'}' Punctuation
+'\n' Text
+
+' ' Text
+' ' Text
+'}' Punctuation
+'\n' Text
+
+'}' Punctuation
+'\n' Text