-
Notifications
You must be signed in to change notification settings - Fork 16
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
tree-sitter and lsp for python and R #88
Conversation
The @davcam can you double check that for me please? Assuming that its not literally the string |
@sminez you are right there is an issue It should be it seems to occur for "modulename" is repeated as you identified whereas not for You'll see from the commit that I haven't changed the colours in config.toml. My guess is that it is confusing "module" which is set to "#2D4F67" (the second builtin colour I think in the screenshot) with something else? |
Thanks! I'll try to get to the bottom of what's going on when I have some time to investigate 🙂 |
A bit more digging. |
yeah that's the sort of thing I was thinking. In that case what should be happening is that the second pattern to match gets dropped. But admittedly, the code for this is pretty naive and is essentially still just the first pass I had when I was trying to get to grips with the tree-sitter API in the first place. I might have some time in a bit to set this up as a test case using just those two queries and the single line of code and sort things out from there 🤞 |
@davcam would you be able to try out your queries on the PR branch I have open for #89? Part of the fix is to match neovim's precedence rules for overlapping queries which is probably going to mess how you've ordered things in your |
Thanks @sminez once I removed offending lua-match's in R and python highlights files I have working syntax highlighting again and the duplication issue is fixed. If I've done the rebase correctly hopefully this PR can be merged. |
fantastic! Thanks for contributing these @davcam 🙂 |
This is to add some configuration to get tree-sitter and LSP working in a minimal way for python and R. #87
Python in ad

R in ad
