Skip to content

Commit 19a7f07

Browse files
committed
Add [default] attribute
1 parent 04b0f12 commit 19a7f07

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

syntax/just.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ syn region justRecipeAttributes
9898
\ contains=justRecipeAttr,justRecipeAttrSep,justRecipeAttrArgs,justRecipeAttrArgError,justRecipeAttrValueShort
9999

100100
syn keyword justRecipeAttr
101-
\ confirm doc exit-message extension group linux macos metadata no-cd no-exit-message no-quiet openbsd parallel positional-arguments private script unix windows working-directory
101+
\ confirm default doc exit-message extension group linux macos metadata no-cd no-exit-message no-quiet openbsd parallel positional-arguments private script unix windows working-directory
102102
\ contained
103103
syn match justRecipeAttrSep ',' contained
104104
syn match justRecipeAttrValueShort '\v:%(\_s|\\\n)*' transparent contained

tests/cases/recipes-with-extras.html

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,7 @@
199199
<span class="Function">sleep2</span><span class="Operator">:</span>
200200
<span class="Number">&Tab;sleep 2</span>
201201
<span class="Number">&Tab;echo </span><span class="String">'sleep2 done'</span>
202+
203+
<span class="Type">[default]</span>
204+
<span class="Function">the-default-recipe</span><span class="Operator">:</span>
205+
<span class="Number">&Tab;echo </span><span class="String">'default recipe'</span>

tests/cases/recipes-with-extras.just

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,3 +199,7 @@ sleep1:
199199
sleep2:
200200
sleep 2
201201
echo 'sleep2 done'
202+
203+
[default]
204+
the-default-recipe:
205+
echo 'default recipe'

0 commit comments

Comments
 (0)