mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-14 21:41:25 -07:00
do greedy ? matching in type pattern matching by default
This commit is contained in:
+10
-1
@@ -1078,7 +1078,16 @@ e_auto_hook_exprs_from_type_key(Arena *arena, E_TypeKey type_key)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
U64 pattern_part_pos = str8_find_needle(type_string, scan_pos, n->string, 0);
|
||||
U64 pattern_part_pos = type_string.size;
|
||||
for(U64 p = scan_pos; p < type_string.size;)
|
||||
{
|
||||
p = str8_find_needle(type_string, p, n->string, 0);
|
||||
if(p < type_string.size)
|
||||
{
|
||||
pattern_part_pos = p;
|
||||
p += n->string.size;
|
||||
}
|
||||
}
|
||||
if(pattern_part_pos > scan_pos && n == auto_hook_node->type_pattern_parts.first)
|
||||
{
|
||||
fits_this_type_string = 0;
|
||||
|
||||
Reference in New Issue
Block a user