From e00ba2e62fd4a72b9c1ac94894c2279884e55b60 Mon Sep 17 00:00:00 2001 From: 0xACE <0xACE@users.noreply.github.com> Date: Thu, 16 Sep 2021 04:31:11 +0000 Subject: [PATCH] compiler_vm: fix interwined comments losing first ; after // (#60) --- modules/compiler_vm/languages/_c_base.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/compiler_vm/languages/_c_base.pm b/modules/compiler_vm/languages/_c_base.pm index 9be5c2a0..4ba553c9 100755 --- a/modules/compiler_vm/languages/_c_base.pm +++ b/modules/compiler_vm/languages/_c_base.pm @@ -352,7 +352,7 @@ sub preprocess_code { $self->{code} =~ s/\s+$//; $self->{code} =~ s/;\s*;\n/;\n/gs; $self->{code} =~ s/;(\s*\/\*.*?\*\/\s*);\n/;$1/gs; - $self->{code} =~ s/;(\s*\/\/.*?\s*);\n/;$1/gs; + $self->{code} =~ s/;(\s*\/\/.*?\s*);\n/;$1;/gs; $self->{code} =~ s/(\{|})\n\s*;\n/$1\n/gs; $self->{code} =~ s/(?:\n\n)+/\n\n/g;