Skip to content

[REQUEST] Ignore comments & annotations #43

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]

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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