Skip to content
Prev Previous commit
Revert change of isSCSSMapItemNode
  • Loading branch information
Sosuke Suzuki committed Jan 6, 2023
commit ee114cbcc708654cf063593356602da8ebf18e19
3 changes: 1 addition & 2 deletions src/language-css/utils/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -276,8 +276,7 @@ function isSCSSMapItemNode(path) {
// Check open parens contain key/value pair (i.e. `(key: value)` and `(key: (value, other-value)`)
if (
!isKeyValuePairInParenGroupNode(node) &&
!(parentParentNode && isKeyValuePairInParenGroupNode(parentParentNode)) &&
!isKeyValuePairNode(node)
!(parentParentNode && isKeyValuePairInParenGroupNode(parentParentNode))
) {
return false;
}
Expand Down