mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-23 22:32:21 -08:00
allow escaped-identifier lookup for type names
This commit is contained in:
1 parent
2b407b5861
commit
23ad094a68
2 files changed
+7
-1
No files matched your search
@@ -1018,6 +1018,12 @@ e_parse_type_from_text_tokens(Arena *arena, String8 text, E_TokenArray *tokens)
|
||||
if(token.kind == E_TokenKind_Identifier)
|
||||
{
|
||||
String8 token_string = str8_substr(text, token.range);
|
||||
if(token_string.size >= 2 &&
|
||||
token_string.str[0] == '`' &&
|
||||
token_string.str[token_string.size-1] == '`')
|
||||
{
|
||||
token_string = str8_substr(token_string, r1u64(1, token_string.size-1));
|
||||
}
|
||||
E_TypeKey type_key = e_leaf_type_from_name(token_string);
|
||||
if(!e_type_key_match(e_type_key_zero(), type_key))
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user