File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -69,9 +69,10 @@ module.exports = function(css, options){
69
69
*/
70
70
71
71
function error ( msg ) {
72
- if ( options . silent === true ) {
72
+ if ( options . silent === true ) {
73
73
return false ;
74
74
}
75
+
75
76
var err = new Error ( msg + ' near line ' + lineno + ':' + column ) ;
76
77
err . filename = options . source ;
77
78
err . line = lineno ;
@@ -119,7 +120,7 @@ module.exports = function(css, options){
119
120
whitespace ( ) ;
120
121
comments ( rules ) ;
121
122
while ( css . length && css . charAt ( 0 ) != '}' && ( node = atrule ( ) || rule ( ) ) ) {
122
- if ( node !== false ) {
123
+ if ( node !== false ) {
123
124
rules . push ( node ) ;
124
125
comments ( rules ) ;
125
126
}
@@ -155,7 +156,7 @@ module.exports = function(css, options){
155
156
function comments ( rules ) {
156
157
var c ;
157
158
rules = rules || [ ] ;
158
- while ( c = comment ( ) ) {
159
+ while ( c = comment ( ) ) {
159
160
if ( c !== false ) {
160
161
rules . push ( c ) ;
161
162
}
@@ -254,10 +255,10 @@ module.exports = function(css, options){
254
255
// declarations
255
256
var decl ;
256
257
while ( decl = declaration ( ) ) {
257
- if ( decl !== false ) {
258
+ if ( decl !== false ) {
258
259
decls . push ( decl ) ;
259
260
comments ( decls ) ;
260
- }
261
+ }
261
262
}
262
263
263
264
if ( ! close ( ) ) return error ( "missing '}'" ) ;
You can’t perform that action at this time.
0 commit comments