tree-sitter / tree-sitter-cpp

C++ grammar for tree-sitter
MIT License
265 stars 87 forks source link

[feature request] Parse C++20 modules #174

Open alfaix opened 2 years ago

alfaix commented 2 years ago

Hi!

I'm experimenting with C++20 modules in neovim and tree-sitter can't parse modules. I took a crack at implementing it and it seems to work. Implementation can be found in this PR.

Creating this issue to avoid duplicating work.

cdacamar commented 2 weeks ago

I would love to see this. Currently translation units containing C++ modules keywords are hard to follow as highlighting quality quickly takes a nose-dive particularly after export is attached to various declarations.