Skip to content

Commit 23ad094

Browse files
committed
allow escaped-identifier lookup for type names
1 parent 2b407b5 commit 23ad094

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

src/eval/eval_parse.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1018,6 +1018,12 @@ e_parse_type_from_text_tokens(Arena *arena, String8 text, E_TokenArray *tokens)
10181018
if(token.kind == E_TokenKind_Identifier)
10191019
{
10201020
String8 token_string = str8_substr(text, token.range);
1021+
if(token_string.size >= 2 &&
1022+
token_string.str[0] == '`' &&
1023+
token_string.str[token_string.size-1] == '`')
1024+
{
1025+
token_string = str8_substr(token_string, r1u64(1, token_string.size-1));
1026+
}
10211027
E_TypeKey type_key = e_leaf_type_from_name(token_string);
10221028
if(!e_type_key_match(e_type_key_zero(), type_key))
10231029
{

src/raddbg/raddbg_views.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,7 @@ rd_watch_view_build(RD_WatchViewState *ewv, RD_WatchViewFlags flags, String8 roo
27982798
if(next_off%64 != 0 && row_eval.value.u64/64 < next_off/64)
27992799
{
28002800
ui_set_next_fixed_x(0);
2801-
ui_set_next_fixed_y(scroll_list_params.row_height_px - ui_top_font_size()*1.f);
2801+
ui_set_next_fixed_y(scroll_list_params.row_height_px - ui_top_font_size()*0.5f);
28022802
ui_set_next_fixed_height(ui_top_font_size()*1.f);
28032803
Vec4F32 boundary_color = rd_rgba_from_theme_color(RD_ThemeColor_CacheLineBoundary);
28042804
boundary_color.w *= 0.5f;

0 commit comments

Comments
 (0)