Skip to content

Commit

Permalink
Enhance support for PKGBUILDS (helix-editor#9909)
Browse files Browse the repository at this point in the history
* enhance support for PKGBUILDS

* run cargo xtask docgen
  • Loading branch information
c0rydoras authored and postsolar committed Apr 4, 2024
1 parent 698c522 commit e166a40
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 1 deletion.
1 change: 1 addition & 0 deletions book/src/generated/lang-support.md
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@
| perl |||| `perlnavigator` |
| php |||| `intelephense` |
| php-only || | | |
| pkgbuild |||| `pkgbuild-language-server`, `bash-language-server` |
| pkl || || |
| po ||| | |
| pod || | | |
Expand Down
14 changes: 13 additions & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -906,7 +907,6 @@ file-types = [
{ glob = ".zshrc" },
{ glob = ".zimrc" },
{ glob = "APKBUILD" },
{ glob = "PKGBUILD" },
{ glob = ".bash_aliases" },
{ glob = ".Renviron" },
{ glob = ".xprofile" },
Expand Down Expand Up @@ -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" },
]
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/highlights.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/indents.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/injections.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash
1 change: 1 addition & 0 deletions runtime/queries/pkgbuild/textobjects.scm
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
; inherits: bash

0 comments on commit e166a40

Please sign in to comment.