|
@@ -167,9 +167,14 @@ void buffer_append_escaped(buffer_t *buffer, char c) {
|
|
|
#define SET(s,tag,pr) do {\
|
|
|
buffer_t *temp_buffer;\
|
|
|
uint_t k;\
|
|
|
- temp_buffer = new_buffer();\
|
|
|
k = strlen(s);\
|
|
|
i += k;\
|
|
|
+ if (strncmp(&text[i], s, k) == 0) {\
|
|
|
+ BUFFER_APPEND(buffer, s);\
|
|
|
+ BUFFER_APPEND(buffer, s);\
|
|
|
+ break;
|
|
|
+ }\
|
|
|
+ temp_buffer = new_buffer();\
|
|
|
while (text[i]) {\
|
|
|
if (strncmp(&text[i], s, k) == 0) {\
|
|
|
i += k-1;\
|