TextMate is a graphical text editor for OS X 10.7+
修訂 | 16b3fcecd7448170f5ac8359fe260f565e663221 (tree) |
---|---|
時間 | 2012-08-24 00:15:12 |
作者 | Allan Odgaard <git@abet...> |
Commiter | Allan Odgaard |
Format string parser: fix infinite loop
This would happen if given an (incomplete) format string like: ‘${1:/’.
@@ -162,6 +162,10 @@ bool parse_context_t::parse_variable (bool(parse_context_t::*parse_content)(char | ||
162 | 162 | res.change |= options[i].change; |
163 | 163 | } |
164 | 164 | } |
165 | + else | |
166 | + { | |
167 | + break; | |
168 | + } | |
165 | 169 | } |
166 | 170 | |
167 | 171 | if(it[-1] == '}') |