-
Notifications
You must be signed in to change notification settings - Fork 17
Integrate open PRs and update instructions #239
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
Conversation
update queries structure, add native nvim-treesitter.parsers instructions
Looks like the wild tests are failing. Those are useful, but I don't think it's a good idea to run them as checks on PRs since a change upstream could cause something to fail even if it's completely unrelated to the PR. |
#233 should parse type paramaters in type spread An error example from test wild: https://github.com/rescript-lang/tree-sitter-rescript/actions/runs/8234279999/job/22515674801?pr=239#step:8:26 cca-io/rescript-material-ui/packages/rescript-mui-material/src/components/FilledInput.res type props<'value> = {
...InputBase.publicProps<'value>
} |
Since we updated the installation instructions, we should remove |
That's probably right. I think we could also ask users to run |
@aspeddro I looked it up. We shouldn't need to check in the files in Of course, I'm open to checking in the generated files if you think that'll help with other editors, but this argument from the maintainer of the Swift parser for not checking it in makes sense to me. Two more things:
|
This allows adding aliased types to record fields without allowing illegal non-inline types such as record or variants.
Elements in pipes | ||
================================================================================ | ||
|
||
<Comp />->Some |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A similar snippet was failing in the wild tests (but I forgot to add it to the list in the description.)
The problem was that pipe expressions only accept primary_expression
s as their members, and JSX elements wasn't one. I fixed it by simply adding it to the list of primary_expression
s. I looked at the grammar and this shouldn't have any negative repercussions.
I agree with |
What do you think about updating the highlights in another PR? |
Sounds good, I can do that. Regarding this PR, I just merged the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work @Emilios1995 🎉
Before the transfer, I made a fork and merged all the PRs that looked good to me. This set of PRs includes the one that refactors the repo so that it's easy to install everything without the separate
nvim-treesitter-rescript
. I also updated the Readme so that the install instructions point to the new location. (I also updated an outdated reference to theInspectTree
command.)The PRs are: #230, #232, #233, #235, #237
After this is merged into main, I'll try to get this parser included in Neovim by default to make it even easier to install.
Failing wild tests
These are the missing features that are causing the wild tests to fail:
Failing tests:
as
annotations on record fields.Source:
/rescript-nodejs.git/src/WorkerThreads.res
Snippet:
Optional fields in switch statements (it also fails in deconstruction patterns in
let
bindings)Source:
/rescript-lang.org/scripts/gendocs.res:152
Snippet:
Partial application
Sources:
rescript-lang.org/src/Playground.res:1637
rescript-lang.org/src/SyntaxLookup.res:121
rescript-lang.org/src/bindings/RescriptCompilerApi.res:247
rescript-lang.org/src/common/BlogFrontmatter.res:127
rescript-association/rescript-lang.org/src/common/DocFrontmatter.res:11
rescript-association/rescript-lang.org/src/vendor/Json_decode.res:198
Snippet: