Skip to content

Indented block comments break code #15

Description

@bfdb

It seems that if an indented block is block commented, the comment signs (*) are also indented. This indentation seems to break a script.

Consider the following script:

scalar
    foo,
    bar;

foo = 1;
bar = 2;

display
    foo
    bar

The output is as expected:

----      9 PARAMETER foo                  =        1.000 
            PARAMETER bar                  =        2.000 

If I add a comment sign in the first column, this seems to work:

scalar
    foo,
    bar;

foo = 1;
bar = 2;

display
*    foo
    bar

----     10 PARAMETER bar                  =        2.000 

However, when I block comment through ctrl+/, i get the following:

scalar
    foo,
    bar;

foo = 1;
bar = 2;

display
    *foo
    bar

****          $192
**** 192  Identifier or quoted string expected
  10          bar


As such, I believe that the comment sign should be added to the first column of a row, rather than follow the indentation of that row.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions