mirror of
https://github.com/danog/dart-sass.git
synced 2025-01-22 22:02:00 +01:00
parent
e8a50acf31
commit
0e5ed4a37d
@ -1,3 +1,8 @@
|
|||||||
|
## 1.22.10
|
||||||
|
|
||||||
|
* Fix a bug in which `get-function()` would fail to find a dash-separated
|
||||||
|
function when passed a function name with underscores.
|
||||||
|
|
||||||
## 1.22.9
|
## 1.22.9
|
||||||
|
|
||||||
* Include argument names when reporting range errors and selector parse errors.
|
* Include argument names when reporting range errors and selector parse errors.
|
||||||
|
@ -331,8 +331,10 @@ class _EvaluateVisitor
|
|||||||
|
|
||||||
var callable = css
|
var callable = css
|
||||||
? PlainCssCallable(name.text)
|
? PlainCssCallable(name.text)
|
||||||
: _addExceptionSpan(_callableNode,
|
: _addExceptionSpan(
|
||||||
() => _getFunction(name.text, namespace: module?.text));
|
_callableNode,
|
||||||
|
() => _getFunction(name.text.replaceAll("_", "-"),
|
||||||
|
namespace: module?.text));
|
||||||
if (callable != null) return SassFunction(callable);
|
if (callable != null) return SassFunction(callable);
|
||||||
|
|
||||||
throw "Function not found: $name";
|
throw "Function not found: $name";
|
||||||
|
@ -5,7 +5,7 @@
|
|||||||
// DO NOT EDIT. This file was generated from async_evaluate.dart.
|
// DO NOT EDIT. This file was generated from async_evaluate.dart.
|
||||||
// See tool/grind/synchronize.dart for details.
|
// See tool/grind/synchronize.dart for details.
|
||||||
//
|
//
|
||||||
// Checksum: c8527e9c89f7ebbab760b62b70da66d1b01b2bf3
|
// Checksum: fdeda387299e1ad0e9d50f22ae32ab0cf1ff6e30
|
||||||
//
|
//
|
||||||
// ignore_for_file: unused_import
|
// ignore_for_file: unused_import
|
||||||
|
|
||||||
@ -339,8 +339,10 @@ class _EvaluateVisitor
|
|||||||
|
|
||||||
var callable = css
|
var callable = css
|
||||||
? PlainCssCallable(name.text)
|
? PlainCssCallable(name.text)
|
||||||
: _addExceptionSpan(_callableNode,
|
: _addExceptionSpan(
|
||||||
() => _getFunction(name.text, namespace: module?.text));
|
_callableNode,
|
||||||
|
() => _getFunction(name.text.replaceAll("_", "-"),
|
||||||
|
namespace: module?.text));
|
||||||
if (callable != null) return SassFunction(callable);
|
if (callable != null) return SassFunction(callable);
|
||||||
|
|
||||||
throw "Function not found: $name";
|
throw "Function not found: $name";
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
name: sass
|
name: sass
|
||||||
version: 1.22.9
|
version: 1.22.10
|
||||||
description: A Sass implementation in Dart.
|
description: A Sass implementation in Dart.
|
||||||
author: Sass Team
|
author: Sass Team
|
||||||
homepage: https://github.com/sass/dart-sass
|
homepage: https://github.com/sass/dart-sass
|
||||||
|
Loading…
x
Reference in New Issue
Block a user