Tree-sitter doesn't work with one whitespace character. [Bug?] #2165
-
ProblemI am attempting to create a simple grammar that takes as input and array of Expected output
Actual output
Minimal grammar file
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 4 replies
-
If handling whitespace explicitly is desired, it might make sense to check out There is some info about this summarized recently starting here, but it might make sense to check out the rest of the discussion, specifically comments from @ahlinc (e.g. #2159 (reply in thread)). |
Beta Was this translation helpful? Give feedback.
-
@sogaiu solved this problem. #2165 (reply in thread) |
Beta Was this translation helpful? Give feedback.
If handling whitespace explicitly is desired, it might make sense to check out
extras
or writing an external scanner.There is some info about this summarized recently starting here, but it might make sense to check out the rest of the discussion, specifically comments from @ahlinc (e.g. #2159 (reply in thread)).