diff options
author | John Hodge <tpg@mutabah.net> | 2016-10-26 11:05:29 +0800 |
---|---|---|
committer | John Hodge <tpg@mutabah.net> | 2016-10-26 11:05:29 +0800 |
commit | 8a592b7cac6fc17b0ff0c0331b4d4db125ba0337 (patch) | |
tree | 21876774161bd1f5ab7e7d1d679ba9e4fa8a2866 /src/parse/types.cpp | |
parent | 477c555476244cff4809e79ae204a6fe90b07033 (diff) | |
download | mrust-8a592b7cac6fc17b0ff0c0331b4d4db125ba0337.tar.gz |
Parse Type - Handle interpolated types
Diffstat (limited to 'src/parse/types.cpp')
-rw-r--r-- | src/parse/types.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/parse/types.cpp b/src/parse/types.cpp index 0f20c8fa..4b0fe46d 100644 --- a/src/parse/types.cpp +++ b/src/parse/types.cpp @@ -97,12 +97,12 @@ TypeRef Parse_Type_Int(TokenStream& lex, bool allow_trait_list) // - Fall through to path handling // '::' - Absolute path case TOK_DOUBLE_COLON: - PUTBACK(tok, lex); - return Parse_Type_Path(lex, {}, allow_trait_list); // 'self' - This relative path - // 'super' - Parent relative path case TOK_RWORD_SELF: + // 'super' - Parent relative path case TOK_RWORD_SUPER: + // ':path' fragment + case TOK_INTERPOLATED_PATH: PUTBACK(tok, lex); return Parse_Type_Path(lex, {}, allow_trait_list); |