commit 6248d5a394e85795a04dca3eb5923f96fe7bbd67
parent ca5f76ecf2f56b4b8c694d445e4ec9e762f3a66c
Author: hhvn <dev@hhvn.uk>
Date: Tue, 4 Jan 2022 14:25:13 +0000
.c/n/s/rcshell.vim: rcSubstBrace contains @rcList
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.config/nvim/syntax/rcshell.vim b/.config/nvim/syntax/rcshell.vim
@@ -83,7 +83,7 @@ syn match rcVarSpecial "\v\$?<(home|ifs|path|pid|prompt|status|contained)>" co
syn region rcSubst matchgroup=rcInclude start="[<>]{" end="}" skipwhite nextgroup=@rcArgument2 contains=@rcList
syn region rcSubstIFS matchgroup=rcInclude start="``\|`" end="{"me=s-1 skipwhite nextgroup=rcSubstBrace contains=@rcList
-syn region rcSubstBrace matchgroup=rcInclude start="{" end="}" contained
+syn region rcSubstBrace matchgroup=rcInclude start="{" end="}" skipwhite nextgroup=@rcArgument2 contained contains=@rcList
syn match rcSub "`\<\S\+\>"
syn match rcJoin "\^" skipwhite nextgroup=@rcArgument2 contains=rcError
syn match rcError "\v(^|\^)\s*\^|\^\ze\s*($|#|;|\^)" skipwhite nextgroup=@rcArgument2