Skip to content
Snippets Groups Projects
Commit 71decc17 authored by George Kiagiadakis's avatar George Kiagiadakis
Browse files

main: allow entire blocks to be in comments without side-effects

parent 0913257d
No related branches found
No related tags found
No related merge requests found
......@@ -182,10 +182,12 @@ parse_commands_file (struct WpDaemonData *d, GInputStream * stream,
while (cur - buffer < bytes_read && (in_block || *cur != '\n')) {
switch (*cur) {
case '{':
in_block++;
if (!in_comment)
in_block++;
break;
case '}':
in_block--;
if (!in_comment)
in_block--;
break;
case '#':
in_comment = TRUE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment