forPath static method

Syntax forPath(
  1. String path
)

Returns the default syntax to use for a file loaded from path.

Implementation

static Syntax forPath(String path) => switch (p.extension(path)) {
      '.sass' => Syntax.sass,
      '.css' => Syntax.css,
      _ => Syntax.scss
    };