diff options
| author | Marvin Löbel <loebel.marvin@gmail.com> | 2015-11-03 17:39:51 +0100 |
|---|---|---|
| committer | Marvin Löbel <loebel.marvin@gmail.com> | 2015-11-26 21:46:12 +0100 |
| commit | 2a8f358de7ee71934b8129dff5d908730454d7b1 (patch) | |
| tree | 977fde21c8fa8ce4d39aad1c6ac5c7c3b2386a93 /src/libsyntax/parse/token.rs | |
| parent | 6ef02eff89e3d2a29eab3346bff393821df6e033 (diff) | |
| download | rust-2a8f358de7ee71934b8129dff5d908730454d7b1.tar.gz rust-2a8f358de7ee71934b8129dff5d908730454d7b1.zip | |
Add syntax support for attributes on expressions and all syntax
nodes in statement position. Extended #[cfg] folder to allow removal of statements, and of expressions in optional positions like expression lists and trailing block expressions. Extended lint checker to recognize lint levels on expressions and locals.
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index 5e4449af604..17b7d8dbaec 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -202,6 +202,7 @@ impl Token { Interpolated(NtIdent(..)) => true, Interpolated(NtBlock(..)) => true, Interpolated(NtPath(..)) => true, + Pound => true, // for expression attributes _ => false, } } |
