Scony / godot-gdscript-toolkit

Independent set of GDScript tools - parser, linter, formatter, and more
MIT License
957 stars 65 forks source link

Can't format a document with a warning ignore decorator in it #224

Closed Soremwar closed 1 year ago

Soremwar commented 1 year ago

As per title, it will fail with an error indicating the content of the line right before the decorator

Reproduction

extends Node

func _ready():
    @warning_ignore("unused_variable")
    var x: Array[int] = [ 1, 2, ]
Previous tokens: [Token('_NL', '\n\t')]
Scony commented 1 year ago

yes, that's not supported yet - thanks for reporting!