Skip to content

No errors when missing closing endifs #39

@tech-meppem

Description

@tech-meppem

I guess this is more of a feature request than a bug per se, but when you have an #!if that usually requires an #!endif, but it's missing, no error is produced.

Is it possible to add an option, that if at the end of the file it is expecting an #!endif, and there isn't one, it can throw / log an error?

For example, say this is a file:

function MyFunc() {
  let x = "foo";
  #!if debug
  x  = "bar"
}

Because there is no closing #!endif, it means the rest of the file will be removed on non-debug builds.
Can an option be added where this will still have the same behaviour as now, but also logs this out as an error / warning if this missing #!endif is detected?

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