stylesheets/flint/functions/lib/_use-syntax.scss in flint-gs-1.6.1 vs stylesheets/flint/functions/lib/_use-syntax.scss in flint-gs-1.6.2

- old
+ new

@@ -1,11 +1,14 @@ -// Use global syntax set through `set-syntax` mixin -// ------------------------------------------------------------------------------- -// @param $selectors [string] : string of selectors to transform -// ------------------------------------------------------------------------------- -// @return [list] : list of transformed selectors according to syntax - -@function use-syntax($selectors) { - @if $flint__support-syntax { - @return call("support-syntax", $flint__support-syntax, $selectors); - } -} +// Use global syntax set through `set-syntax` mixin +// ------------------------------------------------------------------------------- +// @param $selectors [string] : string of selectors to transform +// ------------------------------------------------------------------------------- +// @return [list] : list of transformed selectors according to syntax + +@function use-syntax($selectors) { + @if $flint__support-syntax { + @return support-syntax($flint__support-syntax, $selectors); + } @else { + @warn "Support syntax is set to #{$flint__support-syntax}. Aborting mission."; + @return false; + } +}