aboutsummaryrefslogtreecommitdiff
path: root/lib/xixanta/src/node.rs
diff options
context:
space:
mode:
Diffstat (limited to 'lib/xixanta/src/node.rs')
-rw-r--r--lib/xixanta/src/node.rs5
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/xixanta/src/node.rs b/lib/xixanta/src/node.rs
index 5093ab3..7a5cf3d 100644
--- a/lib/xixanta/src/node.rs
+++ b/lib/xixanta/src/node.rs
@@ -40,7 +40,10 @@ impl PString {
}
// You cannot assign into a name which is reserved.
- if matches!(self.value.to_lowercase().as_str(), "x" | "y" | "a") {
+ if matches!(
+ self.value.to_lowercase().as_str(),
+ "x" | "y" | "a" | "__fallthrough__"
+ ) {
return Err(format!("cannot use reserved name '{}'", self.value));
}