File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,17 @@ function Compiler(options) {
17
17
this . indentation = options . indent ;
18
18
}
19
19
20
- /**
21
- * Emit string and update current position
22
- */
23
-
24
20
Compiler . prototype . updatePosition = function ( str ) {
25
21
var lines = str . match ( / \n / g) ;
26
22
if ( lines ) this . position . line += lines . length ;
27
23
var i = str . lastIndexOf ( '\n' ) ;
28
24
this . position . column = ~ i ? str . length - i : this . position . column + str . length ;
29
25
}
30
26
27
+ /**
28
+ * Emit string and update current position
29
+ */
30
+
31
31
Compiler . prototype . emit = function ( str , pos , startOnly ) {
32
32
if ( pos && pos . start ) {
33
33
this . map . addMapping ( {
@@ -250,9 +250,7 @@ Compiler.prototype.rule = function(node){
250
250
251
251
Compiler . prototype . declaration = function ( node ) {
252
252
return this . emit ( this . indent ( ) )
253
- + this . emit ( node . property , node . position )
254
- + this . emit ( ': ' )
255
- + this . emit ( node . value , node . position )
253
+ + this . emit ( node . property + ': ' + node . value , node . position )
256
254
+ this . emit ( ';' ) ;
257
255
} ;
258
256
You can’t perform that action at this time.
0 commit comments