diff --git a/src/nano.c b/src/nano.c index ec0bb038..accd878e 100644 --- a/src/nano.c +++ b/src/nano.c @@ -2468,7 +2468,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);