postcss 8.3.5 → 8.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of postcss might be problematic. Click here for more details.
- package/lib/parser.js +7 -1
- package/lib/processor.js +1 -1
- package/package.json +1 -1
package/lib/parser.js
CHANGED
@@ -552,7 +552,13 @@ class Parser {
|
|
552
552
|
if (founded === 2) break
|
553
553
|
}
|
554
554
|
}
|
555
|
-
|
555
|
+
// If the token is a word, e.g. `!important`, `red` or any other valid property's value.
|
556
|
+
// Then we need to return the colon after that word token. [3] is the "end" colon of that word.
|
557
|
+
// And because we need it after that one we do +1 to get the next one.
|
558
|
+
throw this.input.error(
|
559
|
+
'Missed semicolon',
|
560
|
+
token[0] === 'word' ? token[3] + 1 : token[2]
|
561
|
+
)
|
556
562
|
}
|
557
563
|
}
|
558
564
|
|
package/lib/processor.js
CHANGED