From 1cd34fdd9c3a0ba6e03f1ce2a69a95afda68f605 Mon Sep 17 00:00:00 2001 From: Jakob Hellermann Date: Thu, 25 Apr 2024 15:44:52 +0200 Subject: [PATCH] Recognize `PKGBUILD` as bash script (#10946) [PKGBUILD] is a file used in the build system of arch linux, and it is basically just a bash script with special functions. Release Notes: - Changed `PKGBUILD` files to be recognized as bash. --- crates/languages/src/bash/config.toml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/languages/src/bash/config.toml b/crates/languages/src/bash/config.toml index 47c8f9e28f..1deb800219 100644 --- a/crates/languages/src/bash/config.toml +++ b/crates/languages/src/bash/config.toml @@ -1,7 +1,7 @@ name = "Shell Script" code_fence_block_name = "bash" grammar = "bash" -path_suffixes = ["sh", "bash", "bashrc", "bash_profile", "bash_aliases", "bash_logout", "profile", "zsh", "zshrc", "zshenv", "zsh_profile", "zsh_aliases", "zsh_histfile", "zlogin", "zprofile", ".env"] +path_suffixes = ["sh", "bash", "bashrc", "bash_profile", "bash_aliases", "bash_logout", "profile", "zsh", "zshrc", "zshenv", "zsh_profile", "zsh_aliases", "zsh_histfile", "zlogin", "zprofile", ".env", "PKGBUILD"] line_comments = ["# "] first_line_pattern = "^#!.*\\b(?:ba|z)?sh\\b" brackets = [