X-Git-Url: https://git.jsancho.org/?a=blobdiff_plain;f=src%2Fgacela.c;h=af78da97433302a1a775cd16ffdbb95fe72972a0;hb=85190d9f178de47361cb8bc77aaf3197632b1337;hp=b2fe6714b145f5f524a2d588c8a64ecdf5038d97;hpb=4e40519197d7b6e04e0d73204447bb9ed01ff3b1;p=gacela.git diff --git a/src/gacela.c b/src/gacela.c index b2fe671..af78da9 100644 --- a/src/gacela.c +++ b/src/gacela.c @@ -178,6 +178,10 @@ opened_parens (char *line, int k) && line[i - 1] != '\\') break; } + else if (line[i] == ';') { + // Comment until endline + break; + } else if (line[i] == c) opened++; else if (line[i] == k) @@ -220,7 +224,7 @@ gacela_client (SCM rec_channel, SCM send_channel) } else { line_for_sending = realloc (line_for_sending, strlen (line_for_sending) + strlen (line) + 2); - line_for_sending = strcat (line_for_sending, " "); + line_for_sending = strcat (line_for_sending, "\n"); line_for_sending = strcat (line_for_sending, line); }