]> Nishi Git Mirror - serenade.git/commitdiff
comment
authornishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 23 Apr 2024 23:27:32 +0000 (23:27 +0000)
committernishi <nishi@0f02c867-ac3d-714e-8a88-971ba1f6efcf>
Tue, 23 Apr 2024 23:27:32 +0000 (23:27 +0000)
git-svn-id: file:///raid/svn-main/nishi-serenade/trunk@23 0f02c867-ac3d-714e-8a88-971ba1f6efcf

Serenade/parser.c

index 1e6a7f255e7068d4c734f83d9350a40fbade729c..12fdc212ef73c2ee6681ba046970eb12297ec86a 100644 (file)
@@ -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 == '(') {