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

Allow string prefixes to be either case #19

Merged
merged 3 commits into from
Mar 3, 2018
Merged

Allow string prefixes to be either case #19

merged 3 commits into from
Mar 3, 2018

Conversation

p-e-w
Copy link
Contributor

@p-e-w p-e-w commented Feb 17, 2018

String prefixes in Python can be both small and capital case.

Tangentially related to tree-sitter/tree-sitter#130, although this is a "Type I" bug.

@maxbrunsfeld
Copy link
Contributor

Thanks! Could you add a test for at least one of these cases in the corpus/literals.txt file?

@p-e-w
Copy link
Contributor Author

p-e-w commented Feb 18, 2018

Done, but there is a CI failure that looks quite legitimate. Not sure what to do here.

@maxbrunsfeld
Copy link
Contributor

I think you just need to regenerate the parser by running the command ‘tree-sitter generate’. Then you should be able to recompile with ‘node-gyp build’ and run these tests with ‘tree-sitter test’.

@maxbrunsfeld
Copy link
Contributor

We check the generated code into the repo so that it is easy to use from languages other than JavaScript (which therefore can’t easily get the code from npm).

@maxbrunsfeld maxbrunsfeld merged commit fca55bf into tree-sitter:master Mar 3, 2018
@p-e-w
Copy link
Contributor Author

p-e-w commented Mar 4, 2018

Thanks for finishing this, @maxbrunsfeld, and sorry for not following up sooner.

@p-e-w p-e-w deleted the string-prefix-case branch March 4, 2018 08:00
@maxbrunsfeld
Copy link
Contributor

No worries! Glad to have this fixed.

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