diff --git a/topiary/languages/nickel.scm b/topiary/languages/nickel.scm index 140514c4..7e57da99 100644 --- a/topiary/languages/nickel.scm +++ b/topiary/languages/nickel.scm @@ -274,7 +274,7 @@ ; id | a -> a ( (#scope_id! "annotations") - (_) @prepend_begin_scope + (_) @append_begin_scope . (annot) @append_end_scope ) diff --git a/topiary/tests/samples/expected/nickel.ncl b/topiary/tests/samples/expected/nickel.ncl index 2bf474e1..96fd3e84 100644 --- a/topiary/tests/samples/expected/nickel.ncl +++ b/topiary/tests/samples/expected/nickel.ncl @@ -10,6 +10,18 @@ id | a -> a }, + #571 + { + b = + { + kind = 'ReplicationController, + } | KubernetesConfig, + c = + { + kind = 'ReplicationController, + } + | KubernetesConfig + }, # Interpolated record operation chains (in # a multi-line comment) diff --git a/topiary/tests/samples/input/nickel.ncl b/topiary/tests/samples/input/nickel.ncl index 38f7360e..e0e94768 100644 --- a/topiary/tests/samples/input/nickel.ncl +++ b/topiary/tests/samples/input/nickel.ncl @@ -10,6 +10,16 @@ id | a -> a }, + #571 + { + b = { + kind = 'ReplicationController, + } | KubernetesConfig, + c = { + kind = 'ReplicationController, + } + | KubernetesConfig + }, # Interpolated record operation chains (in # a multi-line comment)