options method

Options options ()

Search for something like:

@options "--flags";

No standard less implementation. To load a plugin use @plugin.

Implementation

Options options() {
  final int index = parserInput.i;
  Quoted value;

  final String dir = parserInput.$re(_optionsRegExp1);
  if (dir != null) {
    if ((value = entities.quoted()) != null) {
      if (parserInput.$char(';') == null) {
        parserInput
          ..i = index
          ..error('missing semi-colon on options');
      }
      return Options(value, index, fileInfo);
    } else {
      parserInput
        ..i = index
        ..error('malformed options statement');
    }
  }

  return null;
}