glow icon indicating copy to clipboard operation
glow copied to clipboard

Glow syntax highlighting for VS code

Open kwannoel opened this issue 3 years ago • 3 comments

In GitLab by @plotnick on Aug 5, 2021, 06:03

We should have a VS Code extension that does basic syntax highlighting for Glow programs. This will make the language somewhat more accessible for developers who use that IDE; an Emacs major-mode and VIM plugin are obvious follow-ups.

Apart from the (fairly minimal) boilerplate to create the extension (and which we can also obviously augment in the future), this task involves writing a TextMate grammar file (JSON) that defines tokens as regular expressions; see https://code.visualstudio.com/api/language-extensions/syntax-highlight-guide for details.

kwannoel avatar Sep 22 '21 05:09 kwannoel

See https://github.com/reedjones/vsc-glow-lang for a start on this.

plotnick avatar Sep 29 '21 23:09 plotnick

alt text

getting better

reedjones avatar Oct 11 '21 08:10 reedjones

I think that !require, !publish, etc... should have different colors

reedjones avatar Oct 11 '21 08:10 reedjones