Fix transitions for sequences whose left side can be blank

This commit is contained in:
Max Brunsfeld 2014-01-23 23:56:37 -08:00
parent 5776846227
commit 8208aae060
6 changed files with 98 additions and 34 deletions

View file

@ -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;