oakc icon indicating copy to clipboard operation
oakc copied to clipboard

Textmate Grammar for IDE syntax highlighting

Open kevinramharak opened this issue 4 years ago • 2 comments

I created a barebones VS Code extension implementing syntax highlighting support at https://github.com/kevinramharak/oak-syntax-highlighting.

Most of it is based on the rust grammar, but it can easily be extended to support the language. As the syntax is diverging from rust it seemed like a good idea.

As its very experimental I have not made a release to the marketplace yet. If you wan't to use it I suggest you clone this project and put a link to the folder in your $user/.vscode/extensions/ folder.

example

kevinramharak avatar Aug 24 '20 15:08 kevinramharak

Wow, this is beautiful. I'm extremely pleased with this. I wanted to write something like this myself, but I didn't know how!

adam-mcdaniel avatar Aug 24 '20 17:08 adam-mcdaniel

It should be improved to be more generic as its a bit fixated at certain rules at the moment. But this should make it easier to write .ok programs for now. VS Code provides a fairly good documentation and yeoman templates to set up language support. Would be cool to eventually move stuff to an actual language server to provide code completion.

kevinramharak avatar Aug 24 '20 19:08 kevinramharak