SublimeLove icon indicating copy to clipboard operation
SublimeLove copied to clipboard

Love GLSL

Open DanielOaks opened this issue 10 years ago • 2 comments

It'd be awesome if there was a Love GLSL highlighter, for Love graphics shaders.

DanielOaks avatar Dec 20 '14 22:12 DanielOaks

It already sort of exists: https://github.com/minism/SublimeLove/blob/master/Love.JSON-tmLanguage#L135

I added it, and it'll select GLSL when you create a new pixel effect. It actually selects "C", instead of real GLSL (which is available via a plugin), and I think the colors inside the multi-line string were a bit different for some reason.

Either way, I think this is the way to go with it.

cybojanek avatar Dec 21 '14 16:12 cybojanek

Fair enough. If that's the way it's gonna be implemented I'll probably create a new SublimeLoveGLSL package for the GLSL syntax highlighting I've got in PR #10, just because my shaders usually exist as a separate file rather than inside a newPixelEffect call.

Edit: Just updated my PR, made that call support newShader and newPixelEffect, and highlight with proper LoveGLSL shading inside that call too.

DanielOaks avatar Dec 21 '14 21:12 DanielOaks