change to unsuspend
This commit is contained in:
parent
d17a6e395c
commit
6f920731d9
3 changed files with 5 additions and 5 deletions
|
|
@ -1585,7 +1585,7 @@ func RawString(s string, inKey bool) String {
|
||||||
return &SingleQuotedString{Value: s}
|
return &SingleQuotedString{Value: s}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if s == "null" || s == "suspend" || s == "restore" || strings.ContainsAny(s, UnquotedValueSpecials) {
|
} else if s == "null" || s == "suspend" || s == "unsuspend" || strings.ContainsAny(s, UnquotedValueSpecials) {
|
||||||
if !strings.ContainsRune(s, '"') && !strings.ContainsRune(s, '$') {
|
if !strings.ContainsRune(s, '"') && !strings.ContainsRune(s, '$') {
|
||||||
return FlatDoubleQuotedString(s)
|
return FlatDoubleQuotedString(s)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1675,7 +1675,7 @@ func (p *parser) parseValue() d2ast.ValueBox {
|
||||||
}
|
}
|
||||||
return box
|
return box
|
||||||
}
|
}
|
||||||
if strings.EqualFold(s.ScalarString(), "restore") {
|
if strings.EqualFold(s.ScalarString(), "unsuspend") {
|
||||||
box.Suspension = &d2ast.Suspension{
|
box.Suspension = &d2ast.Suspension{
|
||||||
Range: s.Range,
|
Range: s.Range,
|
||||||
Value: false,
|
Value: false,
|
||||||
|
|
|
||||||
|
|
@ -798,10 +798,10 @@ softwareSystem -> externalSystem
|
||||||
(** -> **)[*]: suspend
|
(** -> **)[*]: suspend
|
||||||
|
|
||||||
# Include all top-level objects
|
# Include all top-level objects
|
||||||
*: restore
|
*: unsuspend
|
||||||
# Include all objects with a certain class
|
# Include all objects with a certain class
|
||||||
**: restore {
|
**: unsuspend {
|
||||||
&class: ok
|
&class: ok
|
||||||
}
|
}
|
||||||
# Include all connections/objects connected to an object
|
# Include all connections/objects connected to an object
|
||||||
(** -> externalSystem)[*]: restore
|
(** -> externalSystem)[*]: unsuspend
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue