Fix transitions for sequences whose left side can be blank
This commit is contained in:
parent
5776846227
commit
8208aae060
6 changed files with 98 additions and 34 deletions
|
|
@ -11,7 +11,7 @@ const char * TSParseErrorToString(const TSParseError *error, const char *input_s
|
|||
result = string("Unexpected token ") + symbol_names[error->lookahead_sym] + ". ";
|
||||
break;
|
||||
case TSParseErrorTypeLexical:
|
||||
result = string("Unexpected character '") + (input_string + error->position) + "'. ";
|
||||
result = string("Unexpected character '") + input_string[error->position] + "'. ";
|
||||
break;
|
||||
default:
|
||||
return EMPTY;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue