diff --git a/book/src/generated/lang-support.md b/book/src/generated/lang-support.md index 36968047..f7905df7 100644 --- a/book/src/generated/lang-support.md +++ b/book/src/generated/lang-support.md @@ -134,6 +134,7 @@ | perl | ✓ | ✓ | ✓ | `perlnavigator` | | php | ✓ | ✓ | ✓ | `intelephense` | | php-only | ✓ | | | | +| pkgbuild | ✓ | ✓ | ✓ | `pkgbuild-language-server`, `bash-language-server` | | pkl | ✓ | | ✓ | | | po | ✓ | ✓ | | | | pod | ✓ | | | | diff --git a/languages.toml b/languages.toml index 1cf8da37..7c23f1f4 100644 --- a/languages.toml +++ b/languages.toml @@ -96,6 +96,7 @@ yaml-language-server = { command = "yaml-language-server", args = ["--stdio"] } zls = { command = "zls" } blueprint-compiler = { command = "blueprint-compiler", args = ["lsp"] } typst-lsp = { command = "typst-lsp" } +pkgbuild-language-server = { command = "pkgbuild-language-server" } [language-server.ansible-language-server] command = "ansible-language-server" @@ -906,7 +907,6 @@ file-types = [ { glob = ".zshrc" }, { glob = ".zimrc" }, { glob = "APKBUILD" }, - { glob = "PKGBUILD" }, { glob = ".bash_aliases" }, { glob = ".Renviron" }, { glob = ".xprofile" }, @@ -3352,3 +3352,15 @@ indent = { tab-width = 4, unit = "\t" } [[grammar]] name = "supercollider" source = { git = "https://github.com/madskjeldgaard/tree-sitter-supercollider", rev = "3b35bd0fded4423c8fb30e9585c7bacbcd0e8095" } + +[[language]] +name = "pkgbuild" +scope = "source.bash" +file-types = [{ glob = "PKGBUILD" }] +grammar = "bash" +language-servers = [ + "pkgbuild-language-server", + { except-features = [ + "diagnostics", + ], name = "bash-language-server" }, +] \ No newline at end of file diff --git a/runtime/queries/pkgbuild/highlights.scm b/runtime/queries/pkgbuild/highlights.scm new file mode 100644 index 00000000..b38e1422 --- /dev/null +++ b/runtime/queries/pkgbuild/highlights.scm @@ -0,0 +1 @@ +; inherits: bash diff --git a/runtime/queries/pkgbuild/indents.scm b/runtime/queries/pkgbuild/indents.scm new file mode 100644 index 00000000..b38e1422 --- /dev/null +++ b/runtime/queries/pkgbuild/indents.scm @@ -0,0 +1 @@ +; inherits: bash diff --git a/runtime/queries/pkgbuild/injections.scm b/runtime/queries/pkgbuild/injections.scm new file mode 100644 index 00000000..b38e1422 --- /dev/null +++ b/runtime/queries/pkgbuild/injections.scm @@ -0,0 +1 @@ +; inherits: bash diff --git a/runtime/queries/pkgbuild/textobjects.scm b/runtime/queries/pkgbuild/textobjects.scm new file mode 100644 index 00000000..b38e1422 --- /dev/null +++ b/runtime/queries/pkgbuild/textobjects.scm @@ -0,0 +1 @@ +; inherits: bash