diff options
-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" |