Skip to content

Inline comments after member variables move to the next block after formatting #83

@minami110

Description

@minami110

tested on 0.9.1

Inline comments placed after member variable declarations are incorrectly moved so that they appear as standalone comments before the next function.

Original

class_name Foo

var _bar: Array = [] # This is a comment
var _baz: Dictionary = {} # This is a comment

# Ready
func _ready() -> void:
	print("a") # This is a comment in A.gd
	print("b") # Another comment

After Formatting

class_name Foo

var _bar: Array = [] # This is a comment
var _baz: Dictionary = { }

 # This is a comment

# Ready
func _ready() -> void:
	print("a") # This is a comment in A.gd
	print("b") # Another comment

This might be related to #68

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions