From 664d6159becf19e4b359cd72d1541e090a8f1cbe Mon Sep 17 00:00:00 2001 From: Nick Walker Date: Mon, 30 Dec 2024 00:17:13 +0000 Subject: [PATCH] Add Answer Set Programming --- .gitmodules | 3 ++ grammars.yml | 2 ++ lib/linguist/languages.yml | 10 ++++++ vendor/README.md | 1 + vendor/grammars/asp-syntax-highlight | 1 + .../asp-syntax-highlight.dep.yml | 31 +++++++++++++++++++ 6 files changed, 48 insertions(+) create mode 160000 vendor/grammars/asp-syntax-highlight create mode 100644 vendor/licenses/git_submodule/asp-syntax-highlight.dep.yml diff --git a/.gitmodules b/.gitmodules index 65d5ef54e..b05987659 100644 --- a/.gitmodules +++ b/.gitmodules @@ -275,6 +275,9 @@ [submodule "vendor/grammars/asciidoc.tmbundle"] path = vendor/grammars/asciidoc.tmbundle url = https://github.com/zuckschwerdt/asciidoc.tmbundle +[submodule "vendor/grammars/asp-syntax-highlight"] + path = vendor/grammars/asp-syntax-highlight + url = https://github.com/nickswalker/asp-syntax-highlight.git [submodule "vendor/grammars/asp.tmbundle"] path = vendor/grammars/asp.tmbundle url = https://github.com/textmate/asp.tmbundle diff --git a/grammars.yml b/grammars.yml index 219734dcf..a24778d54 100644 --- a/grammars.yml +++ b/grammars.yml @@ -224,6 +224,8 @@ vendor/grammars/applescript.tmbundle: - source.applescript vendor/grammars/asciidoc.tmbundle: - text.html.asciidoc +vendor/grammars/asp-syntax-highlight: +- source.answersetprogramming vendor/grammars/asp.tmbundle: - source.asp - text.html.asp diff --git a/lib/linguist/languages.yml b/lib/linguist/languages.yml index b5eebfe28..c7b7a64c4 100644 --- a/lib/linguist/languages.yml +++ b/lib/linguist/languages.yml @@ -307,6 +307,16 @@ AngelScript: codemirror_mode: clike codemirror_mime_type: text/x-c++src language_id: 389477596 +Answer Set Programming: + type: programming + color: "#A9CC29" + extensions: + - ".lp" + interpreters: + - "clingo" + tm_scope: source.answersetprogramming + ace_mode: prolog + language_id: 433009171 Ant Build System: type: data color: "#A9157E" diff --git a/vendor/README.md b/vendor/README.md index f2b1a53f6..5f0132882 100644 --- a/vendor/README.md +++ b/vendor/README.md @@ -32,6 +32,7 @@ This is a list of grammars that Linguist selects to provide syntax highlighting - **Alpine Abuild:** [atom/language-shellscript](https://github.com/atom/language-shellscript) - **Altium Designer:** [textmate/ini.tmbundle](https://github.com/textmate/ini.tmbundle) - **AngelScript:** [wronex/sublime-angelscript](https://github.com/wronex/sublime-angelscript) +- **Answer Set Programming:** [nickswalker/asp-syntax-highlight](https://github.com/nickswalker/asp-syntax-highlight) - **Ant Build System:** [textmate/ant.tmbundle](https://github.com/textmate/ant.tmbundle) - **Antlers:** [Stillat/vscode-antlers-language-server](https://github.com/Stillat/vscode-antlers-language-server) - **ApacheConf:** [textmate/apache.tmbundle](https://github.com/textmate/apache.tmbundle) diff --git a/vendor/grammars/asp-syntax-highlight b/vendor/grammars/asp-syntax-highlight new file mode 160000 index 000000000..913ac8ffc --- /dev/null +++ b/vendor/grammars/asp-syntax-highlight @@ -0,0 +1 @@ +Subproject commit 913ac8ffc70f5d72c07d74637511d632c175c410 diff --git a/vendor/licenses/git_submodule/asp-syntax-highlight.dep.yml b/vendor/licenses/git_submodule/asp-syntax-highlight.dep.yml new file mode 100644 index 000000000..e4ecd31d8 --- /dev/null +++ b/vendor/licenses/git_submodule/asp-syntax-highlight.dep.yml @@ -0,0 +1,31 @@ +--- +name: asp-syntax-highlight +version: 913ac8ffc70f5d72c07d74637511d632c175c410 +type: git_submodule +homepage: https://github.com/nickswalker/asp-syntax-highlight.git +license: mit +licenses: +- sources: LICENSE + text: | + MIT License + + Copyright (c) 2017 Arnaud Belcour + + 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: []