summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorShaun McCance <shaunm@redhat.com>2019-07-10 05:46:56 -0400
committerShaun McCance <shaunm@redhat.com>2019-07-10 05:49:48 -0400
commit37f08289c03989502cbc7ce9447ca11a6c59c41f (patch)
tree926df8d94ed1cac58f29d9a683c57668b6329d92 /test
parentc9727a1496a85fd47105b50d17bddd4495698624 (diff)
downloadyelp-xsl-37f08289c03989502cbc7ce9447ca11a6c59c41f.tar.gz
Update highlight.pack.js to 9.15.8, add awk and shell
Diffstat (limited to 'test')
-rw-r--r--test/syntax/code/awk16
-rw-r--r--test/syntax/code/shell11
-rw-r--r--test/syntax/dita.dita20
-rw-r--r--test/syntax/docbook.docbook16
-rw-r--r--test/syntax/mallard.page16
5 files changed, 79 insertions, 0 deletions
diff --git a/test/syntax/code/awk b/test/syntax/code/awk
new file mode 100644
index 00000000..239869c0
--- /dev/null
+++ b/test/syntax/code/awk
@@ -0,0 +1,16 @@
+BEGIN {
+ POPService = "/inet/tcp/0/emailhost/pop3"
+ RS = ORS = "\r\n"
+ print "user name" |& POPService
+ POPService |& getline
+ print "pass password" |& POPService
+ POPService |& getline
+ print "retr 1" |& POPService
+ POPService |& getline
+ if ($1 != "+OK") exit
+ print "quit" |& POPService
+ RS = "\r\n\\.\r\n"
+ POPService |& getline
+ print $0
+ close(POPService)
+}
diff --git a/test/syntax/code/shell b/test/syntax/code/shell
new file mode 100644
index 00000000..4a48fe2b
--- /dev/null
+++ b/test/syntax/code/shell
@@ -0,0 +1,11 @@
+$ echo $EDITOR
+vim
+$ git checkout master
+Switched to branch 'master'
+Your branch is up-to-date with 'origin/master'.
+$ git push
+Everything up-to-date
+$ echo 'All
+> done!'
+All
+done!
diff --git a/test/syntax/dita.dita b/test/syntax/dita.dita
index 216eeb7f..2c87bb3c 100644
--- a/test/syntax/dita.dita
+++ b/test/syntax/dita.dita
@@ -52,6 +52,16 @@ int main(char** argv) {
</body>
</topic>
+<topic id="awk">
+ <title>Awk</title>
+ <body>
+ <section>
+ <title><codeph>outputclass="awk"</codeph></title>
+ <codeblock outputclass="awk"><xi:include parse="text" href="code/awk"/></codeblock>
+ </section>
+ </body>
+</topic>
+
<topic id="bash">
<title>Bash</title>
<body>
@@ -528,6 +538,16 @@ int main(char** argv) {
</body>
</topic>
+<topic id="shell">
+ <title>Shell</title>
+ <body>
+ <section>
+ <title><codeph>outputclass="shell"</codeph></title>
+ <screen outputclass="shell"><xi:include parse="text" href="code/shell"/></screen>
+ </section>
+ </body>
+</topic>
+
<topic id="smalltalk">
<title>Smalltalk</title>
<body>
diff --git a/test/syntax/docbook.docbook b/test/syntax/docbook.docbook
index 0de666a9..8a7b1353 100644
--- a/test/syntax/docbook.docbook
+++ b/test/syntax/docbook.docbook
@@ -46,6 +46,14 @@ int main(char** argv) {
</example>
</section>
+<section id="awk">
+ <title>Awk</title>
+ <example>
+ <title><code>language="awk"</code></title>
+ <programlisting language="awk"><xi:include parse="text" href="code/awk"/></programlisting>
+ </example>
+</section>
+
<section id="bash">
<title>Bash</title>
<example>
@@ -446,6 +454,14 @@ int main(char** argv) {
</example>
</section>
+<section id="shell">
+ <title>Shell</title>
+ <example>
+ <title><code>language="shell"</code></title>
+ <screen language="shell"><xi:include parse="text" href="code/shell"/></screen>
+ </example>
+</section>
+
<section id="smalltalk">
<title>Smalltalk</title>
<example>
diff --git a/test/syntax/mallard.page b/test/syntax/mallard.page
index 9eedebcc..fbe6fe53 100644
--- a/test/syntax/mallard.page
+++ b/test/syntax/mallard.page
@@ -58,6 +58,14 @@ int main(char** argv) {
</listing>
</section>
+<section id="awk">
+ <title>Awk</title>
+ <listing ui:expanded="false">
+ <title><code>type="awk"</code></title>
+ <code type="awk"><xi:include parse="text" href="code/awk"/></code>
+ </listing>
+</section>
+
<section id="bash">
<title>Bash</title>
<listing ui:expanded="false">
@@ -614,6 +622,14 @@ int main(char** argv) {
</listing>
</section>
+<section id="shell">
+ <title>Shell</title>
+ <listing ui:expanded="false">
+ <title><code>type="shell"</code></title>
+ <screen type="shell"><xi:include parse="text" href="code/shell"/></screen>
+ </listing>
+</section>
+
<section id="smalltalk">
<title>Smalltalk</title>
<listing ui:expanded="false">