Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Reject invalid function names #29

Open
nex3 opened this issue Apr 6, 2018 · 0 comments
Open

Reject invalid function names #29

nex3 opened this issue Apr 6, 2018 · 0 comments
Labels
enhancement New feature or request requires deprecation Needs a deprecation cycle before fixing

Comments

@nex3
Copy link
Contributor

nex3 commented Apr 6, 2018

From sass/sass#1598:

Sass has special parse rules for functions named calc, element, expression, and url that mean that user-defined functions with those names can never be run. We should emit an error when those functions are defined rather than allowing the user to define them and be unable to use them, as in sass/sass#1571.

calc and element may also have vendor prefixes.

Note that this is currently deprecated, and just needs to become an error on the master branch.

@nex3 nex3 added enhancement New feature or request requires deprecation Needs a deprecation cycle before fixing labels Apr 6, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request requires deprecation Needs a deprecation cycle before fixing
Projects
None yet
Development

No branches or pull requests

1 participant