about summary refs log tree commit diff
path: root/src/libsyntax/parse/token.rs
diff options
context:
space:
mode:
authorMazdak Farrokhzad <twingoow@gmail.com>2019-07-31 21:25:11 +0200
committerMazdak Farrokhzad <twingoow@gmail.com>2019-07-31 21:25:11 +0200
commit6551285ccaf1562eb73ca1013730165b4d415d8e (patch)
tree8018078f67573fc2e48aa06be6f1bb984f97ca69 /src/libsyntax/parse/token.rs
parentf3a3290ba36b66ee091f6442fe7f0a22dc57941b (diff)
downloadrust-6551285ccaf1562eb73ca1013730165b4d415d8e.tar.gz
rust-6551285ccaf1562eb73ca1013730165b4d415d8e.zip
Address review comments.
Diffstat (limited to 'src/libsyntax/parse/token.rs')
-rw-r--r--src/libsyntax/parse/token.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs
index d6d13c19f71..73adb5c947c 100644
--- a/src/libsyntax/parse/token.rs
+++ b/src/libsyntax/parse/token.rs
@@ -478,10 +478,10 @@ impl Token {
 
     /// Would `maybe_whole_expr` in `parser.rs` return `Ok(..)`?
     /// That is, is this a pre-parsed expression dropped into the token stream
-    /// (which happens while parsing the result ofmacro expansion)?
+    /// (which happens while parsing the result of macro expansion)?
     crate fn is_whole_expr(&self) -> bool {
         if let Interpolated(ref nt) = self.kind {
-            if let NtExpr(_) | NtLiteral(_) | NtPath(_) | NtBlock(_) = **nt {
+            if let NtExpr(_) | NtLiteral(_) | NtPath(_) | NtIdent(..) | NtBlock(_) = **nt {
                 return true;
             }
         }