norgor / vscode-capnp

Cap'n Proto extension for Visual Studio Code.
GNU General Public License v3.0
4 stars 0 forks source link

Improper syntax highlighting for nested interfaces #4

Open bogdan-deac opened 4 months ago

bogdan-deac commented 4 months ago

Hi, cool project, really came in handy!

I noticed a small issue while playing around with some nested interfaces. While not anywhere near breaking, it's kind of annoying.

Screenshot 2024-04-27 at 20 31 20

In this block of code, RaftTransport is a top level interface with two nested interfaces (was trying our some stuf based on the docs).

The first inner interface is not highlighted (only the "interface RecCallback" part, the rest works fine). The second one is highlighted.

norgor commented 4 months ago

Hey!

Glad you like the project!

Thanks for reporting the issue. I am quite busy at the moment, but I will look into the bug when I have the time. You are also free to make a pull request if you would like.