Commits

Kirill Simonov committed a9889e0

Merged grammar fixes from the stable branch.

Comments (0)

Files changed (2)

 
     if (token->type != YAML_STREAM_START_TOKEN) {
         return PARSER_ERROR_INIT(parser,
-                "did not found expected <stream-start>", token->start_mark);
+                "did not find expected <stream-start>", token->start_mark);
     }
 
     parser->state = YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE;
         if (!token) goto error;
         if (token->type != YAML_DOCUMENT_START_TOKEN) {
             PARSER_ERROR_INIT(parser,
-                    "did not found expected <document start>", token->start_mark);
+                    "did not find expected <document start>", token->start_mark);
             goto error;
         }
         if (!PUSH(parser, parser->states, YAML_PARSE_DOCUMENT_END_STATE))
                 PARSER_ERROR_WITH_CONTEXT_INIT(parser,
                         (block ? "while parsing a block node"
                          : "while parsing a flow node"), start_mark,
-                        "did not found expected node content", token->start_mark);
+                        "did not find expected node content", token->start_mark);
                 goto error;
             }
         }
     {
         return PARSER_ERROR_WITH_CONTEXT_INIT(parser,
                 "while parsing a block collection", POP(parser, parser->marks),
-                "did not found expected '-' indicator", token->start_mark);
+                "did not find expected '-' indicator", token->start_mark);
     }
 }
 
     {
         return PARSER_ERROR_WITH_CONTEXT_INIT(parser,
                 "while parsing a block mapping", POP(parser, parser->marks),
-                "did not found expected key", token->start_mark);
+                "did not find expected key", token->start_mark);
     }
 }
 
             else {
                 return PARSER_ERROR_WITH_CONTEXT_INIT(parser,
                         "while parsing a flow sequence", POP(parser, parser->marks),
-                        "did not found expected ',' or ']'", token->start_mark);
+                        "did not find expected ',' or ']'", token->start_mark);
             }
         }
 
             else {
                 return PARSER_ERROR_WITH_CONTEXT_INIT(parser,
                         "while parsing a flow mapping", POP(parser, parser->marks),
-                        "did not found expected ',' or '}'", token->start_mark);
+                        "did not find expected ',' or '}'", token->start_mark);
             }
         }
 
             if (simple_key->is_required) {
                 return SCANNER_ERROR_WITH_CONTEXT_INIT(parser,
                         "while scanning a simple key", simple_key->mark,
-                        "could not found expected ':'", parser->mark);
+                        "could not find expected ':'", parser->mark);
             }
 
             simple_key->is_possible = 0;
         if (simple_key->is_required) {
             return SCANNER_ERROR_WITH_CONTEXT_INIT(parser,
                     "while scanning a simple key", simple_key->mark,
-                    "could not found expected ':'", parser->mark);
+                    "could not find expected ':'", parser->mark);
         }
     }
 
     if (!IS_BREAKZ(parser->input)) {
         SCANNER_ERROR_WITH_CONTEXT_INIT(parser,
                 "while scanning a directive", start_mark,
-                "did not found expected comment or line break", parser->mark);
+                "did not find expected comment or line break", parser->mark);
         goto error;
     }
 
     if (!string.pointer) {
         SCANNER_ERROR_WITH_CONTEXT_INIT(parser,
                 "while scanning a directive", start_mark,
-                "cannot found expected directive name", parser->mark);
+                "could not find expected directive name", parser->mark);
         goto error;
     }
 
     if (!IS_BLANKZ(parser->input)) {
         SCANNER_ERROR_WITH_CONTEXT_INIT(parser,
                 "while scanning a tag", start_mark,
-                "did not found expected whitespace or line break", parser->mark);
+                "did not find expected whitespace or line break", parser->mark);
         goto error;
     }
 
     if (!IS_BREAKZ(parser->input)) {
         SCANNER_ERROR_WITH_CONTEXT_INIT(parser,
                 "while scanning a block scalar", start_mark,
-                "did not found expected comment or line break", parser->mark);
+                "did not find expected comment or line break", parser->mark);
         goto error;
     }
 
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.