@@ -523,7 +523,7 @@ static int CurTok = 0;
523
523
*
524
524
* tok_eof ::= EOF (end of file)
525
525
* tok_open ::= "{{"
526
- * tok_close ::= "}}\n "
526
+ * tok_close ::= "}}"
527
527
* tok_semicolon ::= ";"
528
528
* tok_string ::= [a-zA-Z0-9_-!@#$%^&*()]+ // See isstring() function
529
529
*
@@ -597,7 +597,7 @@ extern "C" int greentea_parse_kv(char *out_key,
597
597
598
598
case tok_open:
599
599
if (HandleKV (out_key, out_value, out_key_size, out_value_size)) {
600
- // We've found {{ KEY ; VALUE }}\n expression
600
+ // We've found {{ KEY ; VALUE }} expression
601
601
return 1 ;
602
602
}
603
603
break ;
@@ -684,7 +684,7 @@ static int isstring(int c) {
684
684
*
685
685
* <TOK_EOF> ::= EOF (end of file)
686
686
* <TOK_OPEN> ::= "{{"
687
- * <TOK_CLOSE> ::= "}}\n "
687
+ * <TOK_CLOSE> ::= "}}"
688
688
* <TOK_SEMICOLON> ::= ";"
689
689
* <TOK_STRING> ::= [a-zA-Z0-9_-!@#$%^&*()]+ // See isstring() function *
690
690
*
@@ -737,16 +737,13 @@ static int gettok(char *out_str, const int str_size) {
737
737
}
738
738
739
739
// close ::= '}'
740
- if (LastChar == ' }' ) {
741
- LastChar = greentea_getc ();
742
- if (LastChar == ' }' ) {
743
- LastChar = greentea_getc ();
744
- if (LastChar == ' \n ' ) {
745
- LastChar = ' !' ;
746
- return tok_close;
747
- }
748
- }
749
- }
740
+ if (LastChar == ' }' ) {
741
+ LastChar = greentea_getc ();
742
+ if (LastChar == ' }' ) {
743
+ LastChar = ' !' ;
744
+ return tok_close;
745
+ }
746
+ }
750
747
751
748
if (LastChar == EOF)
752
749
return tok_eof;
@@ -765,8 +762,8 @@ static int gettok(char *out_str, const int str_size) {
765
762
* <MESSAGE>: <TOK_OPEN> <TOK_STRING> <TOK_SEMICOLON> <TOK_STRING> <TOK_CLOSE>
766
763
*
767
764
* Examples:
768
- * message: "{{__timeout; 1000}}\n "
769
- * "{{__sync; 12345678-1234-5678-1234-567812345678}}\n "
765
+ * message: "{{__timeout; 1000}}"
766
+ * "{{__sync; 12345678-1234-5678-1234-567812345678}}"
770
767
*
771
768
* \param out_key Output buffer to store key string value
772
769
* \param out_value Output buffer to store value string value
0 commit comments