diff --git a/syntax/just.vim b/syntax/just.vim
index 8b004c8..787dddf 100644
--- a/syntax/just.vim
+++ b/syntax/just.vim
@@ -85,7 +85,7 @@ syn region justRecipeAttributes
\ contains=justRecipeAttr,justRecipeAttrSep,justRecipeAttrArgs,justRecipeAttrArgError
syn keyword justRecipeAttr
- \ confirm linux macos no-cd no-exit-message no-quiet private unix windows
+ \ confirm doc group linux macos no-cd no-exit-message no-quiet private unix windows
\ contained
syn match justRecipeAttrSep ',' contained
syn region justRecipeAttrArgs matchgroup=justRecipeAttr start='\V(' end='\V)' contained
diff --git a/tests/cases/recipes-with-extras.html b/tests/cases/recipes-with-extras.html
index 3219a5f..6157bcb 100644
--- a/tests/cases/recipes-with-extras.html
+++ b/tests/cases/recipes-with-extras.html
@@ -108,3 +108,19 @@
[confirm(x"Run this recipe in $PWD ?")]
confirm_shell_expanded:
echo {{x"Running in $PWD"}}
+
+[group('foo group')]
+grouped1:
+ echo 'grouped'
+
+
+[doc]
+not_documented:
+ echo foo
+
+[doc('''
+ A very documented recipe.
+ This documentation comment spans multiple lines.
+''')]
+long_doc:
+ echo foo foo
diff --git a/tests/cases/recipes-with-extras.just b/tests/cases/recipes-with-extras.just
index 7263a56..40e977f 100644
--- a/tests/cases/recipes-with-extras.just
+++ b/tests/cases/recipes-with-extras.just
@@ -108,3 +108,19 @@ hex_digits_all:
[confirm(x"Run this recipe in $PWD ?")]
confirm_shell_expanded:
echo {{x"Running in $PWD"}}
+
+[group('foo group')]
+grouped1:
+ echo 'grouped'
+
+# An undocumented recipe
+[doc]
+not_documented:
+ echo foo
+
+[doc('''
+ A very documented recipe.
+ This documentation comment spans multiple lines.
+''')]
+long_doc:
+ echo foo foo