diff options
author | Ville Skyttä <ville.skytta@iki.fi> | 2015-06-24 15:51:29 +0300 |
---|---|---|
committer | Ville Skyttä <ville.skytta@iki.fi> | 2015-06-24 15:51:29 +0300 |
commit | 0b1da3cf8671f35de7562cfa7235d87097e6f81d (patch) | |
tree | 6d70cc299fd3bed94c856ca284e45c8ed2940ed6 | |
parent | 435dab1dd413f57bd6744ae60df0222afb5af4c8 (diff) | |
download | shared-mime-info-0b1da3cf8671f35de7562cfa7235d87097e6f81d.tar.gz |
Add application/vnd.coffeescript
http://www.iana.org/assignments/media-types/application/vnd.coffeescript
-rw-r--r-- | freedesktop.org.xml.in | 5 | ||||
-rw-r--r-- | tests/list | 2 | ||||
-rw-r--r-- | tests/test.coffee | 28 |
3 files changed, 35 insertions, 0 deletions
diff --git a/freedesktop.org.xml.in b/freedesktop.org.xml.in index dcaa8abc..b98bb009 100644 --- a/freedesktop.org.xml.in +++ b/freedesktop.org.xml.in @@ -2217,6 +2217,11 @@ command to generate the output files. <generic-icon name="text-x-script"/> <glob pattern="*.jsonld"/> </mime-type> + <mime-type type="application/vnd.coffeescript"> + <_comment>CoffeeScript document</_comment> + <generic-icon name="text-x-script"/> + <glob pattern="*.coffee"/> + </mime-type> <mime-type type="application/x-jbuilder-project"> <_comment>JBuilder project</_comment> <generic-icon name="x-office-document"/> @@ -299,6 +299,8 @@ test.ttl text/turtle 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 +# Copied from http://coffeescript.org/#overview +test.coffee application/vnd.coffeescript ox # xml subtypes ../shared-mime-info-spec.xml application/x-docbook+xml xox diff --git a/tests/test.coffee b/tests/test.coffee new file mode 100644 index 00000000..0db65dd2 --- /dev/null +++ b/tests/test.coffee @@ -0,0 +1,28 @@ +# Assignment: +number = 42 +opposite = true + +# Conditions: +number = -42 if opposite + +# Functions: +square = (x) -> x * x + +# Arrays: +list = [1, 2, 3, 4, 5] + +# Objects: +math = + root: Math.sqrt + square: square + cube: (x) -> x * square x + +# Splats: +race = (winner, runners...) -> + print winner, runners + +# Existence: +alert "I knew it!" if elvis? + +# Array comprehensions: +cubes = (math.cube num for num in list) |