tree-sitter / tree-sitter-ruby

Ruby grammar for tree-sitter
MIT License
182 stars 58 forks source link

Remove a prohibited empty string token definition #235

Closed ahlinc closed 1 year ago

ahlinc commented 1 year ago

Empty string tokens will be prohibited in Tree-sitter soon, this PR removes them because this repo is a tree-sitter dependency for corpus tests and it breaks tests in the tree-sitter main repo.

Tree-sitter error report:

Error processing rule 

Caused by:
    Empty string token don't allowed
ahlinc commented 1 year ago

Empty strings tokens will be prohibited only in inline and extras, for this case it's fully legal to use a syntax seq($.foo, alias('', $.bar) to produce an additional zero size token trailing token in a sequence.