Skip to content

Commit

Permalink
Merge pull request #552 from tweag/erin/nickel-idempotency-quoted-enu…
Browse files Browse the repository at this point in the history
…m-tag

Fix Nickel quoted_enum_tag formatting by considering it a leaf
  • Loading branch information
Erin van der Veen authored Jul 3, 2023
2 parents 1c4ced7 + a6dbeb5 commit 95c1ce8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions topiary/languages/nickel.scm
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
(str_chunks_single)
(str_chunks_multi)
(builtin)
(quoted_enum_tag)
] @leaf

; Allow a blank line before the following nodes
Expand Down
2 changes: 2 additions & 0 deletions topiary/tests/samples/expected/nickel.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -1211,6 +1211,8 @@
},

enum = {
quotedEnum = '"QuotedEnum",

Tag
| doc m%"
Contract to enforce the value is an enum tag.
Expand Down
2 changes: 2 additions & 0 deletions topiary/tests/samples/input/nickel.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -1214,6 +1214,8 @@
},

enum = {
quotedEnum = '"QuotedEnum" ,

Tag
| doc m%"
Contract to enforce the value is an enum tag.
Expand Down

0 comments on commit 95c1ce8

Please sign in to comment.