bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Removing semicolon on es6 multiline strings #45

Closed brupelo closed 8 years ago

brupelo commented 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.

Regards. `

bcomnes commented 8 years ago

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.