Skip to content

Uppercase characters not supported in function names? #1

Closed
@rlapoele

Description

@rlapoele

Hello Max,

Thanks for the 2 less plugins you created (lists & this functions one) - I personally think both are much needed addition to less. 👍
I played with this less-plugin-functions yesterday and couldn't get it to work when I used uppercase characters in my funtion names.

Example:

.function-getStyleNamespace { return: "namespace-"; }

@style-ns: getStyleNamespace(); 
@{style-ns}box { display: block; color: black; }

Output:


.function-getStyleNamespace {
  return: "namespace-";
}
getStyleNamespace()box {
  display: block;
  color: black;
}

If I lowercase the function name then everything works fine.

Regards,
R.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions