summaryrefslogtreecommitdiff
path: root/src/parse/types.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/parse/types.cpp')
-rw-r--r--src/parse/types.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/parse/types.cpp b/src/parse/types.cpp
index 57c1bad8..bbbdd4f8 100644
--- a/src/parse/types.cpp
+++ b/src/parse/types.cpp
@@ -87,6 +87,11 @@ TypeRef Parse_Type(TokenStream& lex)
if( tok.str() == CORETYPES[i].name )
return TypeRef(TypeRef::TagPrimitive(), CORETYPES[i].type);
}
+ if( tok.str() == "str" )
+ {
+ // TODO: Create an internal newtype for 'str'
+ return TypeRef(TypeRef::TagPath(), AST::Path({ AST::PathNode("#",{}), AST::PathNode("str",{}) }));
+ }
// - Fall through to path handling
// '::' - Absolute path
case TOK_DOUBLE_COLON: {