diff --git a/syntax/just.vim b/syntax/just.vim
index 4d4f033..5b4478b 100644
--- a/syntax/just.vim
+++ b/syntax/just.vim
@@ -57,7 +57,14 @@ syn region justExprParenInInterp start='\V(' end='\V)' transparent contained con
syn match justRecipeAt "^@" contained
syn match justRecipeColon ":" contained
-syn match justRecipeAttr '^\v\[%(\s|\\\n)*%(confirm|no-%(cd|exit-message)|linux|macos|unix|windows|private)%(%(\s|\\\n)*,%(\s|\\\n)*%(confirm|no-%(cd|exit-message)|linux|macos|unix|windows|private))*%(\s|\\\n)*\]'
+syn region justRecipeAttributes
+ \ matchgroup=justRecipeAttr start='\v^%(\\\n)@3# the trailing space after the closing ] is intentional
[\
- no-cd \
- \
-, unix \
- ]
+ no-cd \
+ \
+, unix \
+ ]
test7:
pwd
diff --git a/tests/cases/recipes-with-extras.html b/tests/cases/recipes-with-extras.html
index eafa255..b474fc7 100644
--- a/tests/cases/recipes-with-extras.html
+++ b/tests/cases/recipes-with-extras.html
@@ -42,18 +42,27 @@
error:
sh -c 'echo Exit 3;exit 3'
-[ unix ]
-[ macos,windows, linux ]
+[ unix ]
+[ macos,windows, linux ]
any:
echo foo
-[ private ,no-cd , unix]
-[no-exit-message ]
+[ private ,no-cd , unix]
+[no-exit-message ]
runpwd_then_error:
pwd
sh -c 'exit 2'
echo unreachable
+[
+ private
+ ,
+
+ confirm
+ ]
+multiline-attr-no-continuations:
+ /bin/true
+
somevar := "1"
interp_with_func_with_arg foo:
echo {{quote(foo)}}
diff --git a/tests/cases/recipes-with-extras.just b/tests/cases/recipes-with-extras.just
index 951d6cf..4deed58 100644
--- a/tests/cases/recipes-with-extras.just
+++ b/tests/cases/recipes-with-extras.just
@@ -54,6 +54,15 @@ runpwd_then_error:
sh -c 'exit 2'
echo unreachable
+[
+ private
+ ,
+
+ confirm
+ ]
+multiline-attr-no-continuations:
+ /bin/true
+
somevar := "1"
interp_with_func_with_arg foo:
echo {{quote(foo)}}