postcss-comment
Advanced tools
Comparing version 0.1.1 to 0.1.2
@@ -225,3 +225,4 @@ var SINGLE_QUOTE = 39; // `'' | ||
content = '/*' + css.slice(pos + 2, next + 1) + ' */'; | ||
content = '/*' + css.slice(pos + 2, next + 1); | ||
content = content.replace(/\*\//g, '*\\/') + ' */' | ||
@@ -228,0 +229,0 @@ nextLine = line; |
{ | ||
"name": "postcss-comment", | ||
"version": "0.1.1", | ||
"version": "0.1.2", | ||
"description": "Allow postcss to support inline comments", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -12,4 +12,8 @@ # postcss-comment | ||
```javascript | ||
var postcss = require('postcss-comment') | ||
require('postcss-comment') | ||
var postcss = require('postcss') | ||
// or | ||
// var postcss = require('postcss-comment') | ||
var fs = require('fs') | ||
@@ -32,9 +36,13 @@ | ||
```css | ||
/* | ||
* comments// | ||
* //comments | ||
*/ | ||
// comments | ||
// comments | ||
.inline-comment { // comments | ||
// comments | ||
//* comments*/ | ||
.inline-comment { /// comments | ||
// com//ments | ||
color: red; // comments | ||
} // comments | ||
// comments | ||
} // /*comments | ||
//*/ comments | ||
@@ -45,10 +53,14 @@ ``` | ||
```css | ||
/* | ||
* comments// | ||
* //comments | ||
*/ | ||
/* comments */ | ||
/* comments */ | ||
.inline-comment { /* comments */ | ||
/* comments */ | ||
/** comments*\/ */ | ||
.inline-comment { /*\/ comments */ | ||
/* com//ments */ | ||
color: red; /* comments */ | ||
} /* comments */ | ||
/* comments */ | ||
} /* /*comments */ | ||
/**\/ comments */ | ||
``` |
11107
232
64