Skip to content

Commit 344d6d1

Browse files
committed
Fix wrong parsing of calc functions as number units (#2382)
Fixes #2382
1 parent 25bd947 commit 344d6d1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/prelexer.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -437,6 +437,10 @@ namespace Sass {
437437
optional <
438438
sequence <
439439
exactly <'/'>,
440+
negate < sequence <
441+
exactly < calc_fn_kwd >,
442+
exactly < '(' >
443+
> >,
440444
multiple_units
441445
> >
442446
>(src);

0 commit comments

Comments
 (0)