mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-28 18:20:02 +00:00
correctly evaluate array lens size arguments in the context of the parent expression
This commit is contained in:
@@ -9801,21 +9801,6 @@ rd_autocomp_cursor_info_from_input_string_off(Arena *arena, String8 input, U64 c
|
||||
return result;
|
||||
}
|
||||
|
||||
internal String8
|
||||
rd_autocomp_query_word_from_input_string_off(String8 input, U64 cursor_off)
|
||||
{
|
||||
U64 word_start_off = 0;
|
||||
for(U64 off = 0; off < input.size && off < cursor_off; off += 1)
|
||||
{
|
||||
if(!char_is_alpha(input.str[off]) && !char_is_digit(input.str[off], 10) && input.str[off] != '_')
|
||||
{
|
||||
word_start_off = off+1;
|
||||
}
|
||||
}
|
||||
String8 query = str8_skip(str8_prefix(input, cursor_off), word_start_off);
|
||||
return query;
|
||||
}
|
||||
|
||||
internal void
|
||||
rd_set_autocomp_regs_(RD_Regs *regs)
|
||||
{
|
||||
|
||||
@@ -963,7 +963,6 @@ internal void rd_set_hover_eval(Vec2F32 pos, String8 string);
|
||||
//~ rjf: Autocompletion Lister
|
||||
|
||||
internal RD_AutocompCursorInfo rd_autocomp_cursor_info_from_input_string_off(Arena *arena, String8 input, U64 cursor_off);
|
||||
internal String8 rd_autocomp_query_word_from_input_string_off(String8 input, U64 cursor_off);
|
||||
internal void rd_set_autocomp_regs_(RD_Regs *regs);
|
||||
#define rd_set_autocomp_regs(...) rd_set_autocomp_regs_(&(RD_Regs){rd_regs_lit_init_top __VA_ARGS__})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user