Pass through to ts_string_input_make_with_length.
@@ -27,13 +27,7 @@ int ts_string_input_seek(void *payload, uint32_t character, uint32_t byte) {
}
TSInput ts_string_input_make(const char *string) {
- if (!input)
- goto error;
-
return ts_string_input_make_with_length(string, strlen(string));
-
- error:
- return (TSInput){ NULL, NULL, NULL, TSInputEncodingUTF8 };
}
TSInput ts_string_input_make_with_length(const char *string, uint32_t length) {
