mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-08-06 22:08:41 +00:00
allow escaped-identifier lookup for type names
This commit is contained in:
@@ -1018,6 +1018,12 @@ e_parse_type_from_text_tokens(Arena *arena, String8 text, E_TokenArray *tokens)
|
|||||||
if(token.kind == E_TokenKind_Identifier)
|
if(token.kind == E_TokenKind_Identifier)
|
||||||
{
|
{
|
||||||
String8 token_string = str8_substr(text, token.range);
|
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);
|
E_TypeKey type_key = e_leaf_type_from_name(token_string);
|
||||||
if(!e_type_key_match(e_type_key_zero(), type_key))
|
if(!e_type_key_match(e_type_key_zero(), type_key))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -2798,7 +2798,7 @@ rd_watch_view_build(RD_WatchViewState *ewv, RD_WatchViewFlags flags, String8 roo
|
|||||||
if(next_off%64 != 0 && row_eval.value.u64/64 < next_off/64)
|
if(next_off%64 != 0 && row_eval.value.u64/64 < next_off/64)
|
||||||
{
|
{
|
||||||
ui_set_next_fixed_x(0);
|
ui_set_next_fixed_x(0);
|
||||||
ui_set_next_fixed_y(scroll_list_params.row_height_px - ui_top_font_size()*1.f);
|
ui_set_next_fixed_y(scroll_list_params.row_height_px - ui_top_font_size()*0.5f);
|
||||||
ui_set_next_fixed_height(ui_top_font_size()*1.f);
|
ui_set_next_fixed_height(ui_top_font_size()*1.f);
|
||||||
Vec4F32 boundary_color = rd_rgba_from_theme_color(RD_ThemeColor_CacheLineBoundary);
|
Vec4F32 boundary_color = rd_rgba_from_theme_color(RD_ThemeColor_CacheLineBoundary);
|
||||||
boundary_color.w *= 0.5f;
|
boundary_color.w *= 0.5f;
|
||||||
|
|||||||
Reference in New Issue
Block a user