Skip to content

[REQUEST] Ignore comments & annotations #43

@fuhlig

Description

@fuhlig

Commented variables should not be parsed / ignored

Input:

$black: #000;
// $white: #fff;

Output:

{
  "variables": [
    {
      "name": "$black",
      "value": "#000",
      "compiledValue": "#000"
    },
    {
      "name": "$white",
      "value": "#fff",
      "compiledValue": "#fff"
    }
  ]
}

Expected:

{
  "variables": [
    {
      "name": "$black",
      "value": "#000",
      "compiledValue": "#000"
    }
  ]
}

Ignore variables with annotations (analogue to sections).
Proposal:

  • ignore single line: // @sass-export-ignore
  • ignore multiple lines (section):
// @sass-export-ignore="internals"
...
// @end-sass-export-ignore [optional]

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions