Skip to content

Errors when a variable at the end of a file does not include a semicolon #40

Description

@notlee

The parser errors when a variable at the end of a file does not include a semicolon. It compiles with dart-sass and lib-sass which suggests omiting the final semicolon is valid (if not ideal).

$a: 1;
/// Variable with no semicolon is valid at end of file.
$b: 1

I came across this whilst generating sassdoc:
Screenshot 2019-08-12 at 17 07 02

I had a go at updating the regex but no luck yet, without breaking other cases 😅

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