diff options
| author | sitandr <60141933+sitandr@users.noreply.github.com> | 2023-05-12 13:26:26 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-05-12 12:26:26 +0200 |
| commit | 4b17c3f5c65a3ec87719d3c39d270767140e3767 (patch) | |
| tree | 7014d570aa871d2040a8fcebdd33b3f0152a4c18 /src/model | |
| parent | fd84d23ade16fea22e8f8413a5d29c95c2ee1d84 (diff) | |
Show rules for symbols (fixes #1130) (#1175)
Diffstat (limited to 'src/model')
| -rw-r--r-- | src/model/styles.rs | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/src/model/styles.rs b/src/model/styles.rs index 334a01b8..2f33ef92 100644 --- a/src/model/styles.rs +++ b/src/model/styles.rs @@ -472,8 +472,10 @@ pub struct ShowableSelector(pub Selector); impl Cast for ShowableSelector { fn is(value: &Value) -> bool { - matches!(value, Value::Str(_) | Value::Label(_) | Value::Func(_)) - || value.type_name() == "regular expression" + matches!( + value, + Value::Symbol(_) | Value::Str(_) | Value::Label(_) | Value::Func(_) + ) || value.type_name() == "regular expression" || value.type_name() == "selector" } @@ -510,6 +512,7 @@ impl Cast for ShowableSelector { CastInfo::Type("label"), CastInfo::Type("string"), CastInfo::Type("regular expression"), + CastInfo::Type("symbol"), CastInfo::Type("selector"), ]) } |
