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' => .sass,
  '.css' => .css,
  _ => .scss,
};