summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSøren Spætte <spaette@outlook.com>2022-11-05 19:18:17 +0000
committerDavid Faure <faure@kde.org>2022-11-05 19:18:17 +0000
commitfea642e9a88fffc8fb14793a5cbd6c4031d4271b (patch)
tree955fe536d8d4138cdd2b34de682dface50913119
parentf4e7cbc86e67e7bc39cf8167823fcf0d8ace9ce1 (diff)
Add text/julia for Julia source code
-rw-r--r--data/freedesktop.org.xml.in5
-rw-r--r--tests/mime-detection/list1
-rw-r--r--tests/mime-detection/test.jl1
3 files changed, 7 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 082416d..95d769a 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -3704,6 +3704,11 @@ command to generate the output files.
<glob pattern="*.cr"/>
<alias type="text/crystal"/>
</mime-type>
+ <mime-type type="text/julia">
+ <comment>Julia source code</comment>
+ <sub-class-of type="text/plain"/>
+ <glob pattern="*.jl"/>
+ </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 29955b8..6022704 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -430,6 +430,7 @@ test.ttl text/turtle ox
test.twig text/x-twig ox
# Crystal
test.cr text/x-crystal ox
+test.jl text/julia 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.jl b/tests/mime-detection/test.jl
new file mode 100644
index 0000000..3a4e995
--- /dev/null
+++ b/tests/mime-detection/test.jl
@@ -0,0 +1 @@
+println("hello world")