///
/// Support syntax
///
/// @access private
///
/// @param {String} $syntax    - alias of syntax to support
/// @param {List}   $selectors - string of selectors to parse
///
/// @return {List} - list of parsed selectors according to syntax
///
/// @group Internal Functions
///
@function flint-support-syntax($syntax, $selectors) {
    $syntax: to-lower-case($syntax);

    // Make sure syntax is supported
    @if function-exists("flint-support-syntax-#{$syntax}") {

        // Support syntax
        //
        // WARNING: Be sure you have created a custom function to support an unknown syntax
        @return call("flint-support-syntax-#{$syntax}", $selectors);
    }

    @if not $flint-development-mode {
        // Throw error if the syntax does not exist and a function to call cannot be found
        @error "You did not pass a valid syntax to `flint-support-syntax`: #{$syntax}. Either specify a custom `flint-support-syntax-<syntax>` function to call, or use one of the offically supported syntaxes. For more info, please visit the docs.";
    } @else {
        @return false;
    }
}
