From a1a6e02f0b7701c709187f14d574e0d31b3cd8fa Mon Sep 17 00:00:00 2001 From: Qingpeng Li <43924785+qingpeng9802@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:44:19 +0000 Subject: [PATCH 1/3] add grammar Signed-off-by: Qingpeng Li <43924785+qingpeng9802@users.noreply.github.com> --- .gitmodules | 3 ++ grammars.yml | 3 ++ vendor/grammars/common-lisp-tmlanguage | 1 + .../common-lisp-tmlanguage.dep.yml | 31 +++++++++++++++++++ 4 files changed, 38 insertions(+) create mode 160000 vendor/grammars/common-lisp-tmlanguage create mode 100644 vendor/licenses/git_submodule/common-lisp-tmlanguage.dep.yml diff --git a/.gitmodules b/.gitmodules index 6890f1a7dc..cb81e2dc51 100644 --- a/.gitmodules +++ b/.gitmodules @@ -383,6 +383,9 @@ [submodule "vendor/grammars/cmake.tmbundle"] path = vendor/grammars/cmake.tmbundle url = https://github.com/textmate/cmake.tmbundle +[submodule "vendor/grammars/common-lisp-tmlanguage"] + path = vendor/grammars/common-lisp-tmlanguage + url = https://github.com/qingpeng9802/common-lisp-tmlanguage.git [submodule "vendor/grammars/conllu-linguist-grammar"] path = vendor/grammars/conllu-linguist-grammar url = https://github.com/odanoburu/conllu-linguist-grammar diff --git a/grammars.yml b/grammars.yml index e9c84c6522..f1434f66ab 100644 --- a/grammars.yml +++ b/grammars.yml @@ -313,6 +313,9 @@ vendor/grammars/clarity.tmbundle: vendor/grammars/cmake.tmbundle: - source.cache.cmake - source.cmake +vendor/grammars/common-lisp-tmlanguage: +- markdown.commonlisp.codeblock +- source.commonlisp vendor/grammars/conllu-linguist-grammar: - text.conllu vendor/grammars/cool-tmbundle: diff --git a/vendor/grammars/common-lisp-tmlanguage b/vendor/grammars/common-lisp-tmlanguage new file mode 160000 index 0000000000..4cb85fe1b7 --- /dev/null +++ b/vendor/grammars/common-lisp-tmlanguage @@ -0,0 +1 @@ +Subproject commit 4cb85fe1b7f1854ec24644bd9894516a51362357 diff --git a/vendor/licenses/git_submodule/common-lisp-tmlanguage.dep.yml b/vendor/licenses/git_submodule/common-lisp-tmlanguage.dep.yml new file mode 100644 index 0000000000..4e37866472 --- /dev/null +++ b/vendor/licenses/git_submodule/common-lisp-tmlanguage.dep.yml @@ -0,0 +1,31 @@ +--- +name: common-lisp-tmlanguage +version: 4cb85fe1b7f1854ec24644bd9894516a51362357 +type: git_submodule +homepage: https://github.com/qingpeng9802/common-lisp-tmlanguage.git +license: mit +licenses: +- sources: LICENSE + text: |- + MIT License + + Copyright (c) 2020 Qingpeng Li + + 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. +notices: [] From 3d50d76f599a87fb299f3ae4bdd37005f6ef97d4 Mon Sep 17 00:00:00 2001 From: Qingpeng Li <43924785+qingpeng9802@users.noreply.github.com> Date: Thu, 29 Feb 2024 15:45:47 +0000 Subject: [PATCH 2/3] change tm_scope Signed-off-by: Qingpeng Li <43924785+qingpeng9802@users.noreply.github.com> --- lib/linguist/languages.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index 3441a3f316..212b747f29 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -1211,7 +1211,7 @@ ColdFusion CFC: language_id: 65 Common Lisp: type: programming - tm_scope: source.lisp + tm_scope: source.commonlisp color: "#3fb68b" aliases: - lisp From a6700b3f41eab1ccf512478ec40e23a495bd6915 Mon Sep 17 00:00:00 2001 From: Qingpeng Li <43924785+qingpeng9802@users.noreply.github.com> Date: Thu, 29 Feb 2024 18:01:37 +0000 Subject: [PATCH 3/3] update README Signed-off-by: Qingpeng Li <43924785+qingpeng9802@users.noreply.github.com> --- vendor/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/README.md b/vendor/README.md index 98d03e1c29..8b6d6b9f2c 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -108,7 +108,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting - **CoffeeScript:** [atom/language-coffee-script](https://github.com/atom/language-coffee-script) - **ColdFusion:** [SublimeText/ColdFusion](https://github.com/SublimeText/ColdFusion) - **ColdFusion CFC:** [SublimeText/ColdFusion](https://github.com/SublimeText/ColdFusion) -- **Common Lisp:** [textmate/lisp.tmbundle](https://github.com/textmate/lisp.tmbundle) +- **Common Lisp:** [qingpeng9802/common-lisp-tmlanguage](https://github.com/qingpeng9802/common-lisp-tmlanguage) - **Common Workflow Language:** [manabuishii/language-cwl](https://github.com/manabuishii/language-cwl) - **Component Pascal:** [textmate/pascal.tmbundle](https://github.com/textmate/pascal.tmbundle) - **Cool:** [anunayk/cool-tmbundle](https://github.com/anunayk/cool-tmbundle)