Skip to content

Commit

Permalink
split k/v attribute check into separate test
Browse files Browse the repository at this point in the history
  • Loading branch information
mkatychev committed Nov 19, 2024
1 parent bc7a9b1 commit c8c4204
Showing 1 changed file with 40 additions and 1 deletion.
41 changes: 40 additions & 1 deletion test/corpus/recipes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ recipes containing attributes with arguments
================================================================================


[group("foo"), group: "echo"]
[group("foo"), group("echo")]
foo:
echo "foo"

Expand Down Expand Up @@ -672,3 +672,42 @@ bar:
(recipe_body
(recipe_line
(text)))))

================================================================================
recipes containing key/value attributes
================================================================================


[group: "echo", group: "foo"]
foo:
echo "foo"

[doc("this is bar"), group: "bar"]
bar:
echo "bar"

--------------------------------------------------------------------------------

(source_file
(recipe
(attribute
(identifier)
(string)
(identifier)
(string))
(recipe_header
(identifier))
(recipe_body
(recipe_line
(text))))
(recipe
(attribute
(identifier)
(string)
(identifier)
(string))
(recipe_header
(identifier))
(recipe_body
(recipe_line
(text)))))

0 comments on commit c8c4204

Please sign in to comment.