Skip to content
Permalink
Browse files

Disabled delimiter in parser.c

Another feature used in the CLI parser, but can make problems here when used for parsing ducky script.
  • Loading branch information...
spacehuhn committed Nov 22, 2019
1 parent 83691e0 commit ab1c4e963859f178872d3accbe94d4da41c83076
Showing with 1 addition and 1 deletion.
  1. +1 −1 atmega_duck/parser.c
@@ -296,8 +296,8 @@ line_list* parse_lines(const char* str, size_t len) {

// disabled because ducky script isn't using quotes
// in_quotes = (curr == '"' && !escaped) ? !in_quotes : in_quotes;
// delimiter = !in_quotes && !escaped && curr == ';' && next == ';';

delimiter = !in_quotes && !escaped && curr == ';' && next == ';';
linebreak = !in_quotes && (curr == '\r' || curr == '\n');

endofline = stri == len || curr == '\0';

0 comments on commit ab1c4e9

Please sign in to comment.
You can’t perform that action at this time.