diff options
author | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-02-10 11:25:50 +0100 |
---|---|---|
committer | Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com> | 2023-03-30 13:52:28 +0200 |
commit | df33f7b5bb1fb0936a9fc6cf9b9cc251447ad89e (patch) | |
tree | c92d21b70a846e65859ebc476bc828ed58d3244f | |
parent | 89d83fd0e81825eeec4070d94851b8efc8e8c117 (diff) | |
download | gcc-df33f7b5bb1fb0936a9fc6cf9b9cc251447ad89e.zip gcc-df33f7b5bb1fb0936a9fc6cf9b9cc251447ad89e.tar.gz gcc-df33f7b5bb1fb0936a9fc6cf9b9cc251447ad89e.tar.bz2 |
libproc_macro: Add Delimiter type interface
Add the Delimiter type for the rust libproc_macro interface.
ChangeLog:
* librust/proc_macro/rust/lib.rs: Add Ident type.
Signed-off-by: Pierre-Emmanuel Patry <pierre-emmanuel.patry@embecosm.com>
-rw-r--r-- | librust/proc_macro/rust/lib.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/librust/proc_macro/rust/lib.rs b/librust/proc_macro/rust/lib.rs new file mode 100644 index 0000000..b2da8bb --- /dev/null +++ b/librust/proc_macro/rust/lib.rs @@ -0,0 +1,8 @@ +#[derive(Copy, Clone, Debug, PartialEq, Eq)] +pub enum Delimiter { + Parenthesis, + Brace, + Bracket, + /// Invisible delimiter + None, +} |