-
-
Notifications
You must be signed in to change notification settings - Fork 146
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
Migration to ts-org parser 0.2.0. #215
Conversation
@levouh I would appreciate if you would give this a test. I changed some of your code regarding edit src block, tests are all passing so we should be ok. I generally need testing on this to make sure nothing is broken. |
cee39d5
to
1286ea9
Compare
I would hope the tests would catch any glaring issues, but I will use this branch for now and let you know if I have any issues. You got an idea in mind for when you want to merge this? |
I'm not super familiar with Treesitter grammars, nor the upstream parser, but what is the biggest difference between the version that was pinned and the existing Looks like there might be some additional support for:
Anything else notable @kristijanhusak? |
Tests helped a bunch while doing this, especially for the edit src part, since I'm not fully familiar with it.
There isn't any new functionality. I just made it compatible with new version, and I need to verify that everything is working.
I'm open to any extensions once we merge this. We can take some ideas from here https://github.com/milisims/tree-sitter-org/blob/main/queries/highlights.scm |
6bc180f
to
53cbd79
Compare
Gotcha.
Yup, ordering there makes sense.
For sure, this seems like the best route going forward, but people would have to be updated to this bit first. From that, would it be worth merging the "Treesitter via
I think your idea is the easiest way to go for this particular issue, but some other notes of a similar flavor:
|
53cbd79
to
9e838b6
Compare
Istead of doing everything in the setup, I just introduced a custom function to load up a grammar https://github.com/nvim-orgmode/orgmode/pull/215/files#diff-83b45fa03268fbaf07c250824cf10ba2471882c14bdb7ad6e3d36355cdbd906cR65 This also allows me to do a ts grammar version check for now and let user know that they need to update.
I will definitely do this. This version will probably go as 0.2, and going forward I'll make releases more frequently. We had discussion here around making this a norm for all the plugins, so I want to take a stab at it.
Completely agree. Will do this immediately. |
d4a71e5
to
319ac6b
Compare
4ec87e8
to
d053f86
Compare
No description provided.