diff options
-rw-r--r-- | data/freedesktop.org.xml.in | 6 | ||||
-rw-r--r-- | tests/mime-detection/list | 2 | ||||
-rw-r--r-- | tests/mime-detection/test.cr | 1 |
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!" |