mirror of
https://github.com/textmate/textmate.git
synced 2026-01-22 13:17:55 -05:00
Format string parser: fix infinite loop
This would happen if given an (incomplete) format string like: ‘${1:/’.
This commit is contained in:
@@ -162,6 +162,10 @@ bool parse_context_t::parse_variable (bool(parse_context_t::*parse_content)(char
|
||||
res.change |= options[i].change;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
if(it[-1] == '}')
|
||||
|
||||
Reference in New Issue
Block a user