change to unsuspend

This commit is contained in:
Alexander Wang 2025-02-28 15:23:55 -07:00
parent d17a6e395c
commit 6f920731d9
No known key found for this signature in database
GPG key ID: BE3937D0D52D8927
3 changed files with 5 additions and 5 deletions

View file

@ -1585,7 +1585,7 @@ func RawString(s string, inKey bool) String {
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, '$') {
return FlatDoubleQuotedString(s)
}

View file

@ -1675,7 +1675,7 @@ func (p *parser) parseValue() d2ast.ValueBox {
}
return box
}
if strings.EqualFold(s.ScalarString(), "restore") {
if strings.EqualFold(s.ScalarString(), "unsuspend") {
box.Suspension = &d2ast.Suspension{
Range: s.Range,
Value: false,

View file

@ -798,10 +798,10 @@ softwareSystem -> externalSystem
(** -> **)[*]: suspend
# Include all top-level objects
*: restore
*: unsuspend
# Include all objects with a certain class
**: restore {
**: unsuspend {
&class: ok
}
# Include all connections/objects connected to an object
(** -> externalSystem)[*]: restore
(** -> externalSystem)[*]: unsuspend