summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJake Leahy <jake@leahy.dev>2023-09-01 08:07:56 +0000
committerDavid Faure <faure@kde.org>2023-09-01 08:07:56 +0000
commit2cd982ab017938a4402f4a656cedd16de0ac5b20 (patch)
treee46ccbe44eabd8ddfa0bf0afc030840aa8215846
parent620fbccac01dd3f4935ba421d0c9d64db149b6fd (diff)
Add text/x-nim and text/x-nimscript
-rw-r--r--data/freedesktop.org.xml.in11
-rw-r--r--tests/mime-detection/list5
-rw-r--r--tests/mime-detection/test.nim1
-rw-r--r--tests/mime-detection/test.nimble3
-rw-r--r--tests/mime-detection/test.nims1
5 files changed, 21 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in
index 2420df1..3f1287b 100644
--- a/data/freedesktop.org.xml.in
+++ b/data/freedesktop.org.xml.in
@@ -6717,6 +6717,17 @@ command to generate the output files.
<sub-class-of type="text/plain"/>
<glob pattern="*.dart"/>
</mime-type>
+ <mime-type type="text/x-nim">
+ <comment>Nim source code</comment>
+ <sub-class-of type="text/plain"/>
+ <glob pattern="*.nim"/>
+ </mime-type>
+ <mime-type type="text/x-nimscript">
+ <comment>Nimscript source code</comment>
+ <sub-class-of type="text/x-nim"/>
+ <glob pattern="*.nims"/>
+ <glob pattern="*.nimble"/>
+ </mime-type>
<mime-type type="text/x-go">
<comment>Go source code</comment>
<sub-class-of type="text/plain"/>
diff --git a/tests/mime-detection/list b/tests/mime-detection/list
index 95eef7a..06facd2 100644
--- a/tests/mime-detection/list
+++ b/tests/mime-detection/list
@@ -962,3 +962,8 @@ perf.data application/x-perf-data
# Blueprint (https://gitlab.gnome.org/jwestman/blueprint-compiler)
blueprint.blp text/x-blueprint ox
+
+# Nim source code
+test.nim text/x-nim ox
+test.nims text/x-nimscript ox
+test.nimble text/x-nimscript ox
diff --git a/tests/mime-detection/test.nim b/tests/mime-detection/test.nim
new file mode 100644
index 0000000..78435ec
--- /dev/null
+++ b/tests/mime-detection/test.nim
@@ -0,0 +1 @@
+echo "Hello, World!"
diff --git a/tests/mime-detection/test.nimble b/tests/mime-detection/test.nimble
new file mode 100644
index 0000000..dd9c7be
--- /dev/null
+++ b/tests/mime-detection/test.nimble
@@ -0,0 +1,3 @@
+author = "Foo bar"
+task build, "Builds files"
+ echo "Hello world"
diff --git a/tests/mime-detection/test.nims b/tests/mime-detection/test.nims
new file mode 100644
index 0000000..78435ec
--- /dev/null
+++ b/tests/mime-detection/test.nims
@@ -0,0 +1 @@
+echo "Hello, World!"