fix: comment around color adjusters (#4595)

master
Jimmy Jia 2018-05-29 14:03:09 -04:00 committed by Evilebot Tnawi
parent 8a67378f97
commit dc5de053c4
1 changed files with 2 additions and 2 deletions

View File

@ -542,8 +542,8 @@ function genericPrint(path, options, print) {
continue;
}
// Print spaces after `+` and `-` in color adjuster functions as is (i.e. `color(red l(+ 20%))`)
// Invalid syntax (i.e. `color(red l(+20%))`) output as is
// Print spaces after `+` and `-` in color adjuster functions as is (e.g. `color(red l(+ 20%))`)
// Adjusters with signed numbers (e.g. `color(red l(+20%))`) output as-is.
const isColorAdjusterNode =
(isAdditionNode(iNode) || isSubtractionNode(iNode)) &&
i === 0 &&