From: nishi Date: Tue, 23 Apr 2024 23:27:32 +0000 (+0000) Subject: comment X-Git-Url: http://10.10.0.4:5575/?a=commitdiff_plain;h=441b5bf8d6f6f1a969741c361181958a01c53fe2;p=serenade.git comment git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@23 0f02c867-ac3d-714e-8a88-971ba1f6efcf --- diff --git a/Serenade/parser.c b/Serenade/parser.c index 1e6a7f2..12fdc21 100644 --- a/Serenade/parser.c +++ b/Serenade/parser.c @@ -170,7 +170,10 @@ struct sn_generic** sn_parse(char* data, unsigned long long size) { gens[0] = NULL; for(i = 0; i < size; i++) { char c = data[i]; - if(c == '"') { + if(c == ';') { + for(; i < size && data[i] != '\n'; i++) + ; + } else if(c == '"') { dq = !dq; } else if(dq) { } else if(c == '(') {