Closed brupelo closed 8 years ago
Hi,
If you're using es6 multiline strings in some nodejs script, sublime-standard-format will get rid of semicolons at the end of the line, which is not cool if you're using embedded glsl shaders, ie:
BEFORE:
var vertex_src = ` attribute vec2 a_position; void main() { gl_Position = vec4(a_position,0,1); }
AFTER:
var vertex_src = attribute vec2 a_position void main() { gl_Position = vec4(a_position,0,1) } Hopefully this can be fixed easily.
attribute vec2 a_position void main() { gl_Position = vec4(a_position,0,1) }
Regards. `
Hi! This is an issue with standard-format and not sublime-standard-format, which uses standard-format under the covers. Closing for now.
Standard-format does not yet support ES6 or jsx unfortunately.
Hi,
If you're using es6 multiline strings in some nodejs script, sublime-standard-format will get rid of semicolons at the end of the line, which is not cool if you're using embedded glsl shaders, ie:
BEFORE:
var vertex_src = ` attribute vec2 a_position; void main() { gl_Position = vec4(a_position,0,1); }
AFTER:
var vertex_src =
attribute vec2 a_position void main() { gl_Position = vec4(a_position,0,1) }
Hopefully this can be fixed easily.Regards. `