Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parse files that end without a newline or semicolon #167

Merged
merged 1 commit into from
Apr 28, 2022

Conversation

nmote
Copy link
Contributor

@nmote nmote commented Apr 27, 2022

See #166

Unfortunately, it doesn't look straightforward to include this example in the tests.

$ echo -n "print(3)" > nonewline.swift
$ npx tree-sitter parse nonewline.swift # No parse error

See alex-pinkus#166

```
$ echo -n "print(3)" > nonewline.swift
$ npx tree-sitter parse nonewline.swift # No parse error
```
@nmote nmote marked this pull request as ready for review April 27, 2022 23:48
@alex-pinkus
Copy link
Owner

Yeah, the test format is probably why I don’t notice something so basic for so long. Thank you for fixing this! Glad the fix was this straightforward.

@alex-pinkus alex-pinkus merged commit ba8f4e6 into alex-pinkus:main Apr 28, 2022
@nmote nmote deleted the eof branch April 28, 2022 00:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants