diff options
Diffstat (limited to 'gas/macro.c')
-rw-r--r-- | gas/macro.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/gas/macro.c b/gas/macro.c index 2aeb157..2ef4cb4 100644 --- a/gas/macro.c +++ b/gas/macro.c @@ -245,9 +245,11 @@ buffer_and_nest (from, to, ptr, get_line) { if (ptr->ptr[i] == '.') i++; - if (strncasecmp (ptr->ptr + i, from, from_len) == 0) + if (strncasecmp (ptr->ptr + i, from, from_len) == 0 + && ! isalnum (ptr->ptr[i + from_len])) depth++; - if (strncasecmp (ptr->ptr + i, to, to_len) == 0) + if (strncasecmp (ptr->ptr + i, to, to_len) == 0 + && ! isalnum (ptr->ptr[i + to_len])) { depth--; if (depth == 0) |