summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeopJr <evan@geopjr.dev>2021-05-28 15:06:23 +0000
committerDavid Faure <faure@kde.org>2021-05-28 15:06:23 +0000
commit19ae0236be95b168d3049907cdd0c521f8dc45a3 (patch)
tree4a8a7f93d80e0030e7b700e533db35dbe67d213d
parent9c026f5abbd48927a4e10c7445336e9c90e6826c (diff)
downloadshared-mime-info-19ae0236be95b168d3049907cdd0c521f8dc45a3.tar.gz
Add text/x-crystal
-rw-r--r--data/freedesktop.org.xml.in6
-rw-r--r--tests/mime-detection/list2
-rw-r--r--tests/mime-detection/test.cr1
3 files changed, 9 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index d42b7001..0592a520 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -3615,6 +3615,12 @@ command to generate the output files.
<generic-icon name="text-x-script"/>
<glob pattern="*.mab"/>
</mime-type>
+ <mime-type type="text/x-crystal">
+ <comment>Crystal source code</comment>
+ <sub-class-of type="text/plain"/>
+ <glob pattern="*.cr"/>
+ <alias type="text/crystal"/>
+ </mime-type>
<mime-type type="text/rust">
<comment>Rust source code</comment>
<sub-class-of type="text/plain"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index d408e21e..9f110da9 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -402,6 +402,8 @@ shell-calls-awk application/x-shellscript x
test.ttl text/turtle ox
# Twig template
test.twig text/x-twig ox
+# Crystal
+test.cr text/x-crystal ox
test.rs text/rust ox
# Copied from http://digital-preservation.github.io/csv-schema/csv-schema-1.0.html#basics
test.csvs text/csv-schema ox
diff --git a/tests/mime-detection/test.cr b/tests/mime-detection/test.cr
new file mode 100644
index 00000000..bf234ce7
--- /dev/null
+++ b/tests/mime-detection/test.cr
@@ -0,0 +1 @@
+puts "Hello, world!"