fix
This commit is contained in:
parent
992e1a4b33
commit
72055164dc
1 changed files with 2 additions and 0 deletions
|
|
@ -1413,8 +1413,10 @@ func (f *Field) AST() d2ast.Node {
|
||||||
if f.Composite != nil {
|
if f.Composite != nil {
|
||||||
value := f.Composite.AST().(d2ast.Value)
|
value := f.Composite.AST().(d2ast.Value)
|
||||||
if m, ok := value.(*d2ast.Map); ok {
|
if m, ok := value.(*d2ast.Map); ok {
|
||||||
|
path := m.Range.Path
|
||||||
// Treat it as multi-line, but not file-map (line 0)
|
// Treat it as multi-line, but not file-map (line 0)
|
||||||
m.Range = d2ast.MakeRange(",1:0:0-2:0:0")
|
m.Range = d2ast.MakeRange(",1:0:0-2:0:0")
|
||||||
|
m.Range.Path = path
|
||||||
}
|
}
|
||||||
k.Value = d2ast.MakeValueBox(value)
|
k.Value = d2ast.MakeValueBox(value)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue