added a comment on the change made in the previous commit
This commit is contained in:
		| @ -277,14 +277,14 @@ tre_parse_bracket_items(tre_parse_ctx_t *ctx, int negate, | |||||||
| 				if (min > max) | 				if (min > max) | ||||||
| 					status = REG_ERANGE; | 					status = REG_ERANGE; | ||||||
| 			} | 			} | ||||||
| 		/* BACON */ | 		/* HAWK: handle \ as an escaper  */ | ||||||
| 			else if (re + 1 < ctx->re_end && *re == CHAR_BACKSLASH) | 			else if (re + 1 < ctx->re_end && *re == CHAR_BACKSLASH) | ||||||
| 			{ | 			{ | ||||||
| 				/* escaped character inside [] */ | 				/* escaped character inside [] */ | ||||||
| 				min = max = *(re + 1); | 				min = max = *(re + 1); | ||||||
| 				re += 2; | 				re += 2; | ||||||
| 			} | 			} | ||||||
| 		/* END BACON */ | 		/* END HAWK */ | ||||||
| 			else if (re + 1 < ctx->re_end | 			else if (re + 1 < ctx->re_end | ||||||
| 			         && *re == CHAR_LBRACKET && *(re + 1) == CHAR_PERIOD) | 			         && *re == CHAR_LBRACKET && *(re + 1) == CHAR_PERIOD) | ||||||
| 				status = REG_ECOLLATE; | 				status = REG_ECOLLATE; | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user