stylesheets/flint/functions/lib/_use-syntax.scss in flint-gs-1.12.0 vs stylesheets/flint/functions/lib/_use-syntax.scss in flint-gs-2.0.0.rc.1
- old
+ new
@@ -1,14 +1,18 @@
-// Use global syntax
-// -------------------------------------------------------------------------------
-// @param $selectors [string] : string of selectors to transform
-// -------------------------------------------------------------------------------
-// @return [list] : list of transformed selectors according to syntax
-
+/**
+ * Use global syntax
+ *
+ * @param {List} $selectors - string of selectors to parse
+ *
+ * @return {List} - parsed list of selectors
+ */
@function flint-use-syntax($selectors) {
@if $flint__support-syntax {
@return flint-support-syntax($flint__support-syntax, $selectors);
} @else {
- @warn "Support syntax is set to #{$flint__support-syntax}. Aborting mission.";
- @return false;
+ @if not $flint__development-mode {
+ @error "Support syntax is set to #{$flint__support-syntax}. Aborting mission.";
+ } @else {
+ @return false;
+ }
}
}