Skip to content

indentation issue when using .load from REPL #509

@fulverin

Description

@fulverin

Hi,
so here it is , on linux.

  • from shell :
    $ civet file.civet
    works fine
  • copy pasting line from editor into civet REPL works too
  • but loading it with load from REPL handle indentations wrongly
    $civet
🐱> .load testing.civet
enum Direction
  Up
    Down
      Left = 2 * Down
      
... 
ParseError: REPL14:3:5 Failed to parse
Expected: ...

source file :

enum Direction
  Up
  Down
  Left = 2 * Down
  Right = 2 * Left

well you can imagine what happen with bigger nested code.
also .help says that .load is for loading js files (behavior is the same) I am not sure if it is true.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions