Skip to content

Don't limit afterSingleLineWithDocComments to single line? #432

Closed
@Gama11

Description

@Gama11

Not sure why the afterSingleLineWithDocComments is restricted to single line cases. I think in this case, I think it also make sense to keep the empty line?

class Main {
	/* @Simple full screen vertex shader */
	static inline var VERTEX_SHADER:String = "
#ifdef GL_ES
	precision mediump float;
#endif

attribute vec2 aVertex;
attribute vec2 aTexCoord;
varying vec2 vTexCoord;

void main() {
	vTexCoord = aTexCoord;
	gl_Position = vec4(aVertex, 0.0, 1.0);
}";

	static var vertices(get, never):Array<Float>;
}

It's currently removed:

class Main {
	/* @Simple full screen vertex shader */
	static inline var VERTEX_SHADER:String = "
#ifdef GL_ES
	precision mediump float;
#endif

attribute vec2 aVertex;
attribute vec2 aTexCoord;
varying vec2 vTexCoord;

void main() {
	vTexCoord = aTexCoord;
	gl_Position = vec4(aVertex, 0.0, 1.0);
}";
	static var vertices(get, never):Array<Float>;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    emptylinesmissing or incorrect empty lineenhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions