New Parser is in Alpha Version #2
Replies: 4 comments 4 replies
-
Again, I've got folds.scm and context.scm covered. |
Beta Was this translation helpful? Give feedback.
-
Very nice! I like the simplified grammar from what I can tell so far. I will start using this as my daily driver right now and report any issues. |
Beta Was this translation helpful? Give feedback.
-
I'm changing workflows...I've changed the repo branch structure to run a more structured workflow:
What this means for you:
|
Beta Was this translation helpful? Give feedback.
-
The new parser is nearing completion, and I'll probably call it "version 1.0" and issue the nvim-treesitter PR by this weekend. I'm therefore closing this discussion. Feel free to open up issues and more discussions if / when you'd like to see something improved. |
Beta Was this translation helpful? Give feedback.
-
My apologies for the duplicate announcement, but it would seem as if the only way to detach a fork is to create a new repo, which is what I've done. The old fork will live on for a short while here, but I plan on deleting it in due course.
Alpha Version
I'm excited to announce that I think the new parser (with highlighting script) is ready for alpha-testing.
It "should" be able to successfully highlight anything the base VHDL 2019 standard can throw at it. I have not implemented PSL and VHPI, because I believe that those should be extensions that are not part of this repo.
Installation Instructions
See the readme for installation instructions in Neovim. I'm not sure about Helix and others.
Help required
Testing
I need help testing. Please feel free to fork the
master
branch and add some test corpus and highlight files. Just comment below that you're doing so and I'll go grab them directly from your repo (by adding an additionalgit remote
).I'm also intending this discussion as a general-purpose bug-reporting place until we can move it out of alpha into a beta version.
Queries
I've populated a preliminary
highlights.scm
. Feel free to fork the repo and contribute -- I'll grab updates directly from there as described above.I need someone else to do the
folds.scm
,context.scm
, etc. because those are not features I use.Named Grammar Nodes
I'm open to suggestions related to grammar nodes and tree organisation. Please post your recommendations below and I'll update. You can of course also issue a pull-request from your fork, but I think it might be easier if I take ownership of the tree structure.
Parser Size
I've fought the parser down from over 13 MB to the 6.5 MB that it is at the moment. Any suggestions on slimming it down further will be appreciated.
Timelines
I'll be mostly AWOL for the next 3 to 4 weeks due to other commitments, so please don't expect prompt responses. I'll pick it up again afterwards.
Historic Discussion References
FYI List:
Beta Was this translation helpful? Give feedback.
All reactions