diff --git a/syntax/just.vim b/syntax/just.vim
index 1632db1..01f7849 100644
--- a/syntax/just.vim
+++ b/syntax/just.vim
@@ -86,7 +86,7 @@ syn region justRecipeAttributes
\ contains=justRecipeAttr,justRecipeAttrSep,justRecipeAttrArgs,justRecipeAttrArgError,justRecipeAttrValueShort
syn keyword justRecipeAttr
- \ confirm doc group linux macos no-cd no-exit-message no-quiet positional-arguments private unix windows
+ \ confirm doc extension group linux macos no-cd no-exit-message no-quiet positional-arguments private script unix windows
\ contained
syn match justRecipeAttrSep ',' contained
syn match justRecipeAttrValueShort '\v:%(\_s|\\\n)*' transparent contained
diff --git a/tests/cases/recipes-with-extras.html b/tests/cases/recipes-with-extras.html
index 3a290b0..8ff78b1 100644
--- a/tests/cases/recipes-with-extras.html
+++ b/tests/cases/recipes-with-extras.html
@@ -156,3 +156,9 @@
[doc: x"echo value of $$HOME: $HOME"]
attr-colon-shell-expanded-string:
	echo "$HOME"
+
+[extension: '.py']
+ext:
+
+	import sys
+	print(sys.argv)
diff --git a/tests/cases/recipes-with-extras.just b/tests/cases/recipes-with-extras.just
index 0628254..a90b3ec 100644
--- a/tests/cases/recipes-with-extras.just
+++ b/tests/cases/recipes-with-extras.just
@@ -156,3 +156,9 @@ attr-colon3:
[doc: x"echo value of $$HOME: $HOME"]
attr-colon-shell-expanded-string:
echo "$HOME"
+
+[extension: '.py']
+ext:
+ #!/usr/bin/env python3
+ import sys
+ print(sys.argv)
diff --git a/tests/cases/script.html b/tests/cases/script.html
new file mode 100644
index 0000000..bcf54d0
--- /dev/null
+++ b/tests/cases/script.html
@@ -0,0 +1,9 @@
+[script: 'python3']
+python_info:
+	import platform
+	print(platform.python_implementation(), platform.python_version())
+
+[script('just', '-d', x'${PWD:-.}/', '-f')]
+nested_justfile:
+	foo:
+		pwd
diff --git a/tests/cases/script.just b/tests/cases/script.just
new file mode 100644
index 0000000..872a71c
--- /dev/null
+++ b/tests/cases/script.just
@@ -0,0 +1,9 @@
+[script: 'python3']
+python_info:
+ import platform
+ print(platform.python_implementation(), platform.python_version())
+
+[script('just', '-d', x'${PWD:-.}/', '-f')]
+nested_justfile:
+ foo:
+ pwd