From 37f08289c03989502cbc7ce9447ca11a6c59c41f Mon Sep 17 00:00:00 2001 From: Shaun McCance Date: Wed, 10 Jul 2019 05:46:56 -0400 Subject: Update highlight.pack.js to 9.15.8, add awk and shell --- test/syntax/code/awk | 16 ++++++++++++++++ test/syntax/code/shell | 11 +++++++++++ test/syntax/dita.dita | 20 ++++++++++++++++++++ test/syntax/docbook.docbook | 16 ++++++++++++++++ test/syntax/mallard.page | 16 ++++++++++++++++ 5 files changed, 79 insertions(+) create mode 100644 test/syntax/code/awk create mode 100644 test/syntax/code/shell (limited to 'test') 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) { + + Awk + +
+ <codeph>outputclass="awk"</codeph> + +
+ +
+ Bash @@ -528,6 +538,16 @@ int main(char** argv) { + + Shell + +
+ <codeph>outputclass="shell"</codeph> + +
+ +
+ Smalltalk 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) { +
+ Awk + + <code>language="awk"</code> + + +
+
Bash @@ -446,6 +454,14 @@ int main(char** argv) {
+
+ Shell + + <code>language="shell"</code> + + +
+
Smalltalk 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) {
+
+ Awk + + <code>type="awk"</code> + + +
+
Bash @@ -614,6 +622,14 @@ int main(char** argv) {
+
+ Shell + + <code>type="shell"</code> + + +
+
Smalltalk -- cgit v1.2.1