fuzion icon indicating copy to clipboard operation
fuzion copied to clipboard

Bad indentation does not cause an error

Open maxteufel opened this issue 2 years ago • 1 comments

The following example

ex is
  iaws (val u8) =>
    val = (u8 9)   ||
     val = (u8 10)

  say (iaws (u8 1))
  say (iaws (u8 9))

has bad indentation in the iaws feature but this does not cause an error. See also https://github.com/tokiwa-software/fuzion/pull/1494#discussion_r1203455980.

maxteufel avatar May 24 '23 06:05 maxteufel

@fridis What is the logic needed to detect this bad indentation? Should we enforce indentation to be at least two spaces?

michaellilltokiwa avatar Jun 03 '24 13:06 michaellilltokiwa