From 255db77f1f43d0051855f087857eada1caa56b1d Mon Sep 17 00:00:00 2001 From: Alhadis Date: Fri, 27 May 2016 21:02:39 +1000 Subject: [PATCH] Add support for Wavefront OBJ/MTL files --- .gitmodules | 3 +++ grammars.yml | 3 +++ lib/linguist/languages.yml | 14 ++++++++++++++ vendor/grammars/language-wavefront | 1 + vendor/licenses/grammar/language-wavefront.txt | 18 ++++++++++++++++++ 5 files changed, 39 insertions(+) create mode 160000 vendor/grammars/language-wavefront create mode 100644 vendor/licenses/grammar/language-wavefront.txt diff --git a/.gitmodules b/.gitmodules index 7a89185f..49834553 100644 --- a/.gitmodules +++ b/.gitmodules @@ -728,3 +728,6 @@ [submodule "vendor/grammars/creole"] path = vendor/grammars/creole url = https://github.com/Siddley/Creole +[submodule "vendor/grammars/language-wavefront"] + path = vendor/grammars/language-wavefront + url = https://github.com/Alhadis/language-wavefront diff --git a/grammars.yml b/grammars.yml index 9e6f37f5..dc88d7c0 100755 --- a/grammars.yml +++ b/grammars.yml @@ -380,6 +380,9 @@ vendor/grammars/language-supercollider: - source.supercollider vendor/grammars/language-toc-wow: - source.toc +vendor/grammars/language-wavefront: +- source.wavefront.mtl +- source.wavefront.obj vendor/grammars/language-xbase: - source.harbour vendor/grammars/language-yaml: diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index f1d8111c..829897e8 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -3873,6 +3873,20 @@ Vue: tm_scope: text.html.vue ace_mode: html +Wavefront Material: + type: data + extensions: + - .mtl + tm_scope: source.wavefront.mtl + ace_mode: text + +Wavefront Object: + type: data + extensions: + - .obj + tm_scope: source.wavefront.obj + ace_mode: text + Web Ontology Language: type: markup color: "#9cc9dd" diff --git a/vendor/grammars/language-wavefront b/vendor/grammars/language-wavefront new file mode 160000 index 00000000..2e0e152e --- /dev/null +++ b/vendor/grammars/language-wavefront @@ -0,0 +1 @@ +Subproject commit 2e0e152eb239061343433a775818698973e1cdfd diff --git a/vendor/licenses/grammar/language-wavefront.txt b/vendor/licenses/grammar/language-wavefront.txt new file mode 100644 index 00000000..2c2fe743 --- /dev/null +++ b/vendor/licenses/grammar/language-wavefront.txt @@ -0,0 +1,18 @@ +--- +type: grammar +name: language-wavefront +license: isc +--- +Copyright (c) 2016, John Gardner + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted, provided that the above +copyright notice and this permission notice appear in all copies. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES +WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF +MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR +ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF +OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.