diff --git a/src/nano.c b/src/nano.c index 6c8b389e..466fb5fe 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2444,7 +2444,7 @@ int main(int argc, char **argv) if (brackets == NULL) brackets = mallocstrcpy(NULL, "\"')>]}"); if (quotestr == NULL) - quotestr = mallocstrcpy(NULL, "^([ \t]*([!#%:;>|}]|/{2}|--))+"); + quotestr = mallocstrcpy(NULL, "^([ \t]*([!#%:;>|}]|/{2}))+"); /* Compile the quoting regex, and exit when it's invalid. */ quoterc = regcomp("ereg, quotestr, NANO_REG_EXTENDED);