commit 9632202928e8db8365dbcf91ddb94cc443248d90
parent fb8fc3b0836e278a91d087abeef20241049d9b2c
Author: hhvn <dev@hhvn.uk>
Date: Sun, 9 Jan 2022 15:59:51 +0000
.c/n/s/rcshell.vim: add more signals
Diffstat:
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/.config/nvim/syntax/rcshell.vim b/.config/nvim/syntax/rcshell.vim
@@ -130,9 +130,9 @@ syn keyword rcSwitchCase case c
syn region rcBrace matchgroup=rcOperator start="{" end="}" contains=@rcList
-syn match rcFunction "\v<fn\s+\w+>" contains=rcNote skipwhite nextgroup=rcFnBody
-syn region rcFnBody matchgroup=rcFunction start="{" end="}" contained contains=rcNote,@rcList
-syn keyword rcNote sighup sigint sigalrm sigexit return contained
+syn match rcFunction "\v<fn\s+\w+>" contains=rcHandler skipwhite nextgroup=rcFnBody
+syn region rcFnBody matchgroup=rcFunction start="{" end="}" contained contains=@rcList
+syn keyword rcHandler prompt sigexit sigabrt sigiot sigalrm sigbus sigfpe sighup sigill sigint sigpipe sigpoll sigquit sigterm sigwinch sigxcpu
syn match rcAssign "\w\+\ze\s*=" skipwhite nextgroup=@rcArgument contains=rcVarSpecial
@@ -142,7 +142,7 @@ syn match rcAssign "\w\+\ze\s*=" s
syn cluster rcBuiltins contains=rcPrefixes,rcBuiltinMatch,rcBuiltinKeyword,coreutils,p9putils
syn match rcPrefixes "[!@]"
syn match rcBuiltinMatch skipwhite nextgroup=@rcArgument2 "[.~]"
-syn keyword rcBuiltinKeyword skipwhite nextgroup=@rcArgument2 break builtin cd echo eval exec exit flag limit newpgrp rfork shift umask wait whatis
+syn keyword rcBuiltinKeyword skipwhite nextgroup=@rcArgument2 break builtin cd echo eval exec exit flag limit newpgrp rfork shift umask wait whatis return
syn keyword coreutils skipwhite nextgroup=@rcArgument2 dd cp df du ln ls mv rm tr wc cat dir cut env pwd seq tty yes date echo expr head tail sort stty sync true vdir dirname chgrp chmod chown false mkdir mknod rmdir sleep touch uname chroot mkfifo mktemp readlink basename DIR_COLORS du id nl od pr tr wc dir cut env fmt ptx seq tac tee sum tty who yes arch comm expr fold head join link nice shuf tail sort test stat uniq vdir unexpand dirname chcon cksum nohup paste pinky shred sleep split touch tsort uname users sha1sum truncate logname base64 timeout chroot csplit factor expand hostid md5sum sha224sum sha256sum mkfifo mktemp sha384sum sha512sum printf runcon stdbuf unlink whoami printenv pathchk dircolors readlink install basename
syn keyword p9putils skipwhite nextgroup=@rcArgument2 9 B E g p u 9a 9c 9l 9p bc cb db dc dd ed du lc mc ls mk pr ps rc rm tr wc xd 9ar 9fs awd awk cal cat bmp cmp dns eqn fmt gif hoc ico img jpg lex man pbd pic png ppm psu psv rio sam sed seq sig tar tbl tcs tee src srv sum vac web win zip yuv troff2png dnsquery Mail acid acme date comm core crop dial dict diff echo file freq grap hget grep hist gzip ipso join kill mapd look news nobs page plot read scat slay tail sort test time stop tpic tref vcat uniq vnfs yacc cmapcube secstored troff2html sftpcache delatex cleanname devdraw Getdir 9term 9660srv factotum disknfs adict ascii astro bzip2 fsize graph gview iconv idiff resample label mkdir mount mtime nroff plumb proof ramfs sleep spell split sprog stack start stats togif toico topng toppm touch troff vacfs tweak units unvac unutf unzip usage wmail netfileget netfileput doctype acidtypes htmlroff samsave samterm dsa2pub dsa2ssh secuser ndbmkhash sha1sum rsa2csr rsa2pub rsa2ssh rsafill listen1 ndbipquery ndbquery auxstats snarfer lookman tcolors Netfiles calendar aescbc codereview strings bundle colors deroff dnstcp dsagen factor fontsrv ndbmkdb fortune tr2post getflags gunzip import secstore pemdecode md5sum mk9660 pemencode netkey passwd vbackup primes psdownload unicode unmount rsagen vmount vwhois xshove acmeevent yesterday vmount0 ndbmkhosts asn12dsa asn12rsa statusbar htmlfmt netfilestat auxclog wintext rsa2x509 9pfuse readcons plumber basename 9pserve dump9660 namespace bunzip2 psfonts dnsdebug
@@ -183,7 +183,7 @@ hi def link rcPipe Operator
hi def link rcLogical Operator
hi def link rcIfNot Conditional
hi def link rcElse Conditional
-hi def link rcNote Keyword
+hi def link rcHandler Keyword
hi def link rcAssign Identifier
hi def link rcPrefixes Macro
"Built-in Commands