HigherOrderCO / Bend

A massively parallel, high-level programming language
https://higherorderco.com
Apache License 2.0
17.19k stars 424 forks source link

(Request) Don't force 2 space indentation #408

Open fzn0x opened 3 months ago

fzn0x commented 3 months ago

Is your feature request related to a problem? Please describe. Can we automically adjust the indentation for Bend syntax, does not force to 2 spaces

Describe the solution you'd like What happen now is Bend force us to use 2 spaces

fzn0x@DESKTOP-69TAUPC:/mnt/d/strassen$ bend run test.bend
Errors:
In test.bend :
Indentation error. Expected 2 spaces, got 4.
  2 |     return 2 + 3

fzn0x@DESKTOP-69TAUPC:/mnt/d/strassen$ bend run-c test.bend
Errors:
In test.bend :
Indentation error. Expected 2 spaces, got 4.
  2 |     return 2 + 3

fzn0x@DESKTOP-69TAUPC:/mnt/d/strassen$ bend run-c test.bend 
Errors:
In test.bend :
Indentation error. Expected 2 spaces, got 1.
  2 |  return 2 + 3

Let adjust the indentation so it's not expecting 2 spaces

Describe alternatives you've considered Adding Bend to Prettier? https://prettier.io/docs/en/plugins.html

Additional context

developedby commented 3 months ago

Yes, this is planned.