summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpi-r-p <pierre.papin@senx.io>2018-11-07 16:06:15 +0100
committerpi-r-p <pierre.papin@senx.io>2018-11-09 11:53:24 +0100
commit7dea7e65c4f6872d70d1b17141caa11196e6405b (patch)
tree96c2da70193cffa2a0ad9cb51803d0a4f705674d
parent4f7ad5ec448d38137ddc4de5624215ba0f8ebfa9 (diff)
downloadshared-mime-info-7dea7e65c4f6872d70d1b17141caa11196e6405b.tar.gz
Added WarpScript source code mime type.
IANA registration ongoing for : text/vnd.senx.warpscript
-rw-r--r--freedesktop.org.xml.in5
-rw-r--r--tests/list2
-rw-r--r--tests/test.mc25
3 files changed, 12 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in
index 97d3c46b..612621a0 100644
--- a/freedesktop.org.xml.in
+++ b/freedesktop.org.xml.in
@@ -5778,6 +5778,11 @@ command to generate the output files.
<_comment>WMLScript program</_comment>
<glob pattern="*.wmls"/>
</mime-type>
+ <mime-type type="text/vnd.senx.warpscript">
+ <_comment>WarpScript source code</_comment>
+ <sub-class-of type="text/plain"/>
+ <glob pattern="*.mc2"/>
+ </mime-type>
<mime-type type="application/x-ace">
<_comment>ACE archive</_comment>
<generic-icon name="package-x-generic"/>
diff --git a/tests/list b/tests/list
index ae9032e0..c2c12a5b 100644
--- a/tests/list
+++ b/tests/list
@@ -302,6 +302,8 @@ bibtex.bib text/x-bibtex
simple-obj-c.m text/x-objcsrc
# Copied from LLVM project test suite
test.cl text/x-opencl-src ox
+# hand-made
+test.mc2 text/vnd.senx.warpscript
# http://www.apps.ietf.org/rfc/rfc4716.html#sec-3.6
ssh-public-key.txt text/plain
diff --git a/tests/test.mc2 b/tests/test.mc2
new file mode 100644
index 00000000..3b8a3b0d
--- /dev/null
+++ b/tests/test.mc2
@@ -0,0 +1,5 @@
+
+// Warp 10 WarpScript stack language
+'hello '
+2 TOSTRING +
+' world' +