verona Syntax highlighting C++
UPDATE: Search the VS Code marketplace for Verona!
I'm not sure if you all have something already you use to syntax highlight your Verona (maybe just using C# or C++?) but I wanted to try my hand at writing something specific to the language, so have put together a rough-and-ready VS Code plugin. It does a reasonable job of highlighting, ~~but currently only highlights within classes, so standalone expressions aren't handled yet.~~
I'd like to spend a little more time on tightening things up and filling in gaps before publishing something to the marketplace, but thought I'd drop a line here first in case you already had thoughts or plans for this, or if anybody else wanting to dig into the language is looking for syntax highlighting.
Thanks, that's really nice!
We are planning to support the language server protocol in the compiler, so that we can get syntax highlighting, autocompletion, error reporting, and so on in an IDE, but that's still quiet a way away. Your plugin is a great interim (and is likely to continue to be a lot faster - as I recall, VS Code can use in-process JSON grammars for quick highlighting as you type and replace the colours with a slower LSP implementation when it returns, so it's likely to be useful for a long time).
Another cool thing would be to add it to Pygments. I think it's still the way GitHub does highlight in file view and code review.
I would love to see this in Pygments. I have added some Markdown things that use ```verona escapes, but currently GitHub just renders them withotu syntax highlighting.
So it looks like GitHub might be using a project called linguist now? And looking at some of the grammars in there we might actually be able to re-use the same textmates grammar in both VS Code and in GitHub.
I think this is in a reasonable enough state for an initial release now, so I’ll give it a package name that’s unlikely to conflict with one you might want later and push it up!
Also please reach out if at any point in the future you’d like to be added to the repo or rehome it somewhere else.
I think GitHub is a bit picky about what languages they allow into linguist. In particular they require the language to be actively used by some GitHub projects.
eg. Pony had a bit of trouble getting in, even despite there being projects using it: https://github.com/github/linguist/pull/2600
@plietar I saw their readme had a requirement of "a few hundred repos" using a language before they'll consider adding support.
But in the meantime I've published this as Verona Syntax on the VS Code marketplace, so if you search for Verona in the extension window then it'll come up 🙂
I'm positive there are bugs, missing syntax, and non-ideal highlighting here and there but I think this is a good starting point for folks that want to dive into the project!
- Oops! There was a problem during set up. Please try again. Unknown Error (code: cURL error 28: Failed to connect to sitekit.withgoogle.com port 443: Connection timed out). - site-kit-wp
- [dotnet/csharplang] await should not capture SynchronizationContext by default - Csharp
- ExoPlayer EventMessageEncoder encoding wrong duration - Java
- Add logins support for scrubbing encrypted data - Rust uniffi-rs
- serving Advanced HTTP/2 support - Go
- terminal Default bound key combinations are not working as expected on international keyboard layouts C++
- flutter Dart -> Engine roll failing on unreachable assert failure - Dart