Skip to content

Add something along the lines of #ifndef #2

@foca

Description

@foca

Something along the lines of

#ifndef something
#define something value
#endif

…but less verbose. Maybe #noredef (thinking of noremap in Vim.)

The idea being that plugins or modules can define variables with default values, and you could override them before including the file, so:

// In some_plugin.css
#noredef $some-plugin-color #ddd
strong { color: $some-plugin-color; }

// In main.css
#define $some-plugin-color #ccc
#include "some_plugin.css"

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