diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2021-05-12 22:05:34 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2021-05-12 22:05:34 +0300 |
commit | 98f200fb7e85a5c7e27e9a997c7a2096573e6c09 (patch) | |
tree | 8f0988b0714e6ee936ab9251373f67b336f24ae3 | |
parent | 09faac14d0c88dc6ee50a59c7d880e9631c39ff3 (diff) | |
download | shared-mime-info-98f200fb7e85a5c7e27e9a997c7a2096573e6c09.tar.gz |
application/toml: new type
https://toml.io/en/v1.0.0#mime-type
Closes https://gitlab.freedesktop.org/xdg/shared-mime-info/-/issues/156
-rw-r--r-- | data/freedesktop.org.xml.in | 8 | ||||
-rw-r--r-- | tests/mime-detection/list | 2 | ||||
-rw-r--r-- | tests/mime-detection/test.toml | 23 |
3 files changed, 33 insertions, 0 deletions
diff --git a/data/freedesktop.org.xml.in b/data/freedesktop.org.xml.in index a9de9c7e..49c9379e 100644 --- a/data/freedesktop.org.xml.in +++ b/data/freedesktop.org.xml.in @@ -527,6 +527,14 @@ command to generate the output files. <root-XML namespaceURI='urn:oasis:names:tc:xliff:document:1.1' localName='xliff'/> <alias type="application/x-xliff"/> </mime-type> + <mime-type type="application/toml"> + <comment>TOML document</comment> + <acronym>TOML</acronym> + <expanded-acronym>Tom's Obvious Minimal Language</expanded-acronym> + <sub-class-of type="text/plain"/> + <generic-icon name="text-x-generic"/> + <glob pattern="*.toml"/> + </mime-type> <mime-type type="application/x-yaml"> <comment>YAML document</comment> <acronym>YAML</acronym> diff --git a/tests/mime-detection/list b/tests/mime-detection/list index ae8f3c45..9371ec12 100644 --- a/tests/mime-detection/list +++ b/tests/mime-detection/list @@ -333,6 +333,8 @@ html5.css text/css ox # Copied from http://www.w3.org/TR/html5/offline.html#manifests test.manifest text/cache-manifest test.yaml application/x-yaml +# Copied from https://toml.io/en/ +test.toml application/toml ox # hand-made mysum.m text/x-matlab x # taken from Octave 3.2 sources diff --git a/tests/mime-detection/test.toml b/tests/mime-detection/test.toml new file mode 100644 index 00000000..3fe43f07 --- /dev/null +++ b/tests/mime-detection/test.toml @@ -0,0 +1,23 @@ +# This is a TOML document + +title = "TOML Example" + +[owner] +name = "Tom Preston-Werner" +dob = 1979-05-27T07:32:00-08:00 + +[database] +enabled = true +ports = [ 8000, 8001, 8002 ] +data = [ ["delta", "phi"], [3.14] ] +temp_targets = { cpu = 79.5, case = 72.0 } + +[servers] + +[servers.alpha] +ip = "10.0.0.1" +role = "frontend" + +[servers.beta] +ip = "10.0.0.2" +role = "backend" |