From 0983f62e02057d26538bf5b65f552e9f4a394bf3 Mon Sep 17 00:00:00 2001 From: Robert Koeninger Date: Mon, 15 May 2017 10:06:09 -0400 Subject: [PATCH] Add syntax grammar for Shen language (#3625) * Added sublime-shen as submodule * Specified tm_scope in languages.yml * Imported copy of license --- .gitmodules | 3 +++ grammars.yml | 2 ++ lib/linguist/languages.yml | 2 +- vendor/grammars/sublime-shen | 1 + vendor/licenses/grammar/sublime-shen.txt | 34 ++++++++++++++++++++++++ 5 files changed, 41 insertions(+), 1 deletion(-) create mode 160000 vendor/grammars/sublime-shen create mode 100644 vendor/licenses/grammar/sublime-shen.txt diff --git a/.gitmodules b/.gitmodules index f4e85444..11f13812 100644 --- a/.gitmodules +++ b/.gitmodules @@ -839,6 +839,9 @@ [submodule "vendor/grammars/language-jolie"] path = vendor/grammars/language-jolie url = https://github.com/fmontesi/language-jolie +[submodule "vendor/grammars/sublime-shen"] + path = vendor/grammars/sublime-shen + url = https://github.com/rkoeninger/sublime-shen [submodule "vendor/grammars/Sublime-Pep8"] path = vendor/grammars/Sublime-Pep8 url = https://github.com/R4PaSs/Sublime-Pep8 diff --git a/grammars.yml b/grammars.yml index da835b01..9eb90e2b 100755 --- a/grammars.yml +++ b/grammars.yml @@ -641,6 +641,8 @@ vendor/grammars/sublime-rexx: - source.rexx vendor/grammars/sublime-robot-plugin: - text.robot +vendor/grammars/sublime-shen: +- source.shen vendor/grammars/sublime-spintools: - source.regexp.spin - source.spin diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index f5319f68..7e0bef66 100755 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -4108,7 +4108,7 @@ Shen: color: "#120F14" extensions: - ".shen" - tm_scope: none + tm_scope: source.shen ace_mode: text language_id: 348 Slash: diff --git a/vendor/grammars/sublime-shen b/vendor/grammars/sublime-shen new file mode 160000 index 00000000..0cd53f2b --- /dev/null +++ b/vendor/grammars/sublime-shen @@ -0,0 +1 @@ +Subproject commit 0cd53f2b329683492aff6a5391397ea139c16b22 diff --git a/vendor/licenses/grammar/sublime-shen.txt b/vendor/licenses/grammar/sublime-shen.txt new file mode 100644 index 00000000..ae76ce99 --- /dev/null +++ b/vendor/licenses/grammar/sublime-shen.txt @@ -0,0 +1,34 @@ +--- +type: grammar +name: sublime-shen +license: bsd-3-clause +--- +License +------------ + +Copyright (c) 2017, Robert Koeninger +All rights reserved. + +https://opensource.org/licenses/BSD-3-Clause + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + * Redistributions of source code must retain the above copyright + notice, this list of conditions and the following disclaimer. + * Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + * Neither the name of the nor the + names of its contributors may be used to endorse or promote products + derived from this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL BE LIABLE FOR ANY +DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND +ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.