about summary refs log tree commit diff
path: root/src/libsyntax/parse
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2016-07-22 11:30:29 -0700
committerGitHub <noreply@github.com>2016-07-22 11:30:29 -0700
commitad264f7f39b6113fb87a489d72d31abbc03ab148 (patch)
tree4534d3522de7de7d9bf9335b0f2df85923c71bd0 /src/libsyntax/parse
parentaf87681ed28c35689d817a12be92024864ce7e2c (diff)
parent536c3157955b76297ff667087807ffe463b48018 (diff)
downloadrust-ad264f7f39b6113fb87a489d72d31abbc03ab148.tar.gz
rust-ad264f7f39b6113fb87a489d72d31abbc03ab148.zip
Auto merge of #34924 - cgswords:empty_delim, r=nrc
Added empty CloseDelim to tokens for future use.

Description says it all. I added a new DelimToken type, Empty, to indicate a Delimited tokenstream with no actual delimiters (which are variously useful for constructing macro output).

r? @nrc
Diffstat (limited to 'src/libsyntax/parse')
-rw-r--r--src/libsyntax/parse/token.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index f0a6f8edeec..6fdc9b714d3 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -48,6 +48,8 @@ pub enum DelimToken {
     Bracket,
     /// A curly brace: `{` or `}`
     Brace,
+    /// An empty delimiter
+    NoDelim,
 }
 
 #[derive(Clone, RustcEncodable, RustcDecodable, PartialEq, Eq, Hash, Debug, Copy)]