Skip to content

Commit f325332

Browse files
committed
enh(sh): Apply to PKGBUILD files
Originally proposed in scopatz#364
1 parent e1cf2c1 commit f325332

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

sh.nanorc

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
## Here is an example for Bourne shell scripts.
22
##
3-
syntax "SH" "\.sh$" "\.ash$" "\.bashrc$" "bashrc$" "\.bash_aliases$" "bash_aliases$" "\.bash_functions$" "bash_functions$" "\.bash_login$" "\.bash_logout$" "\.bash_profile$" "bash_profile$" "\.profile$" "revise\..+$"
3+
syntax "SH" "\.sh$" "\.ash$" "\.bashrc$" "bashrc$" "\.bash_aliases$" "bash_aliases$" "\.bash_functions$" "bash_functions$" "\.bash_login$" "\.bash_logout$" "\.bash_profile$" "bash_profile$" "\.profile$" "revise\..+$" "^PKGBUILD$"
44
header "^#!.*/(env +)?(ba|da|a)?sh( |$)"
55
magic "(POSIX|Bourne-Again) shell script.*text"
66
comment "#"
77

88
linter dash -n
9+
#linter shellcheck --format=gcc
910

1011
## keywords:
1112
color green "\<(case|do|done|elif|else|esac|fi|for|function|if|in|select|then|time|until|while)\>"

0 commit comments

Comments
 (0)