From 061712ff78b8c88c9784669e5448a3d97fc70a27 Mon Sep 17 00:00:00 2001 From: Mat Mariani Date: Thu, 7 Sep 2017 04:53:25 -0400 Subject: [PATCH] Added syntax highlighting for Squirrel (#3791) * Added syntax highlighting for Squirrel https://github.com/search?utf8=%E2%9C%93&q=extension%3Anut+NOT+nothack&t ype=Code Squirrel is already detected by GitHub but has no syntax highlighting. * removed duplicate `source.nut` --- .gitmodules | 3 ++ grammars.yml | 2 ++ vendor/grammars/squirrel-language | 1 + vendor/licenses/grammar/language-python.txt | 36 ------------------- vendor/licenses/grammar/squirrel-language.txt | 26 ++++++++++++++ 5 files changed, 32 insertions(+), 36 deletions(-) create mode 160000 vendor/grammars/squirrel-language delete mode 100644 vendor/licenses/grammar/language-python.txt create mode 100644 vendor/licenses/grammar/squirrel-language.txt diff --git a/.gitmodules b/.gitmodules index d3d58e0c..e0830966 100644 --- a/.gitmodules +++ b/.gitmodules @@ -869,3 +869,6 @@ [submodule "vendor/grammars/sublime-nearley"] path = vendor/grammars/sublime-nearley url = https://github.com/Hardmath123/sublime-nearley +[submodule "vendor/grammars/squirrel-language"] + path = vendor/grammars/squirrel-language + url = https://github.com/mathewmariani/squirrel-language diff --git a/grammars.yml b/grammars.yml index f2c9b870..50b64cb2 100755 --- a/grammars.yml +++ b/grammars.yml @@ -616,6 +616,8 @@ vendor/grammars/sourcepawn: - source.sp vendor/grammars/sql.tmbundle: - source.sql +vendor/grammars/squirrel-language: +- source.nut vendor/grammars/st2-zonefile: - text.zone_file vendor/grammars/standard-ml.tmbundle: diff --git a/vendor/grammars/squirrel-language b/vendor/grammars/squirrel-language new file mode 160000 index 00000000..e3fc6086 --- /dev/null +++ b/vendor/grammars/squirrel-language @@ -0,0 +1 @@ +Subproject commit e3fc608676caad0bc3fd6001dadae90590b697e0 diff --git a/vendor/licenses/grammar/language-python.txt b/vendor/licenses/grammar/language-python.txt deleted file mode 100644 index 8d564aa1..00000000 --- a/vendor/licenses/grammar/language-python.txt +++ /dev/null @@ -1,36 +0,0 @@ ---- -type: grammar -name: language-python -license: mit ---- -Copyright (c) 2014 GitHub Inc. - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -"Software"), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE -LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION -OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION -WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - --------------------------------------------------------------------- - -This package was derived from a TextMate bundle located at -https://github.com/textmate/python.tmbundle and distributed under the following -license, located in `README.mdown`: - -Permission to copy, use, modify, sell and distribute this -software is granted. This software is provided "as is" without -express or implied warranty, and with no claim as to its -suitability for any purpose. diff --git a/vendor/licenses/grammar/squirrel-language.txt b/vendor/licenses/grammar/squirrel-language.txt new file mode 100644 index 00000000..e37cf6fa --- /dev/null +++ b/vendor/licenses/grammar/squirrel-language.txt @@ -0,0 +1,26 @@ +--- +type: grammar +name: squirrel-language +license: mit +--- +The MIT License (MIT) + +Copyright (c) 2017 Mathew Mariani + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE.