3 ms·
We support optional elements by wrapping them in `Option<T>` (other annotations are applied to the contents of the option)! So you can define struct ... {
by shadaj 4y ago
We support optional elements by wrapping them in `Option<T>` (other annotations are applied to the contents of the option)! So you can define
struct ... {
...
#[rust_sitter::leaf(text = ",")
_dangling_comma: Option<()>
}
- mcluck 4y agoPerfect, thanks!