humio / atom-elm-format

Run elm-format in atom
https://atom.io/packages/elm-format
Apache License 2.0
10 stars 8 forks source link

Elm blocks not formatted by `elm-format` #13

Closed OvermindDL1 closed 8 years ago

OvermindDL1 commented 8 years ago

Elm blocks not formatted by elm-format, such as a GLSL block of:

fragmentShader : Shader {} Uniform Varying
fragmentShader =
    [glsl|
         precision mediump float;
         varying vec4 fragColor;

         void main () {
             gl_FragColor = fragColor;
         }
    |]

Any chance on custom formatting for a few popular block types, like glsl (could defer to other Atom formatters for a given unknown name)?

See https://groups.google.com/forum/#!topic/elm-discuss/HIdcbC0IOHk for reference.

benjick commented 8 years ago

I think you want to open an issue here: https://github.com/avh4/elm-format

This is just the atom extension using that binary

OvermindDL1 commented 8 years ago

Correct, just wanting atom support for this. elm-format is not wanting to touch other arbitrary embedded languages and as such it does not and will not touch them.

benjick commented 8 years ago

I'm not sure, this extension does no analysis of the code, it just ships the whole thing to elm-format, picks up the output and replaces the current editor content.

OvermindDL1 commented 8 years ago

Hmm, perhaps better for language-elm in that case...

benjick commented 8 years ago

I'm closing this because it's not really in the scope of this project