Scony / godot-gdscript-toolkit

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

Bitshift operators get formatted as boolean operators #304

Closed anup-the-magic closed 3 months ago

anup-the-magic commented 3 months ago

Minimal example:

var foo = 1 << 2

Expected

Retain formatting

Actual

var foo = 1 < < 2

(note, this is a syntax error)

Scony commented 3 months ago

Looks like bug, thanks for reporting

Scony commented 3 months ago

@anup-the-magic I cannot reproduce with latest gdtoolkit - what version do you use?

anup-the-magic commented 3 months ago

D'oh, I'm so sorry, thought I was using this to format but seems like default formatter was godot-tools, where the issue was already reported!

gonna go ahead and close this, I can't reproduce!

Scony commented 3 months ago

Thanks for clarifying!