Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Nickel quoted_enum_tag formatting by considering it a leaf #552

Merged
merged 1 commit into from
Jul 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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