make special editable as well

This commit is contained in:
Arthur Zucker
2023-09-04 20:54:29 +00:00
parent 2291c89896
commit 058e34b421
3 changed files with 14 additions and 0 deletions

View File

@ -216,6 +216,12 @@ impl PyAddedToken {
self.get_token().special
}
/// Set the value of the :obj:`special` option
#[setter]
fn set_special(&mut self, special: bool) {
self.special = special;
}
fn __str__(&self) -> PyResult<&str> {
Ok(&self.content)
}