@@ -40,10 +40,10 @@ module.exports = {
4040 process : function ( node ) {
4141 var _this = this ;
4242 // Types of nodes that can be sorted:
43- var NODES = [ 'atruleb' , 'atruler' , 'atrules' , 'commentML ' , 'commentSL ' ,
44- 'declaration' , 's ' , 'include' ] ;
43+ var NODES = [ 'atruleb' , 'atruler' , 'atrules' , 'multilineComment ' , 'singlelineComment ' ,
44+ 'declaration' , 'space ' , 'include' ] ;
4545 // Spaces and comments:
46- var SC = [ 'commentML ' , 'commentSL ' , 's ' ] ;
46+ var SC = [ 'multilineComment ' , 'singlelineComment ' , 'space ' ] ;
4747
4848 var currentNode ;
4949 // Sort order of properties:
@@ -129,7 +129,7 @@ module.exports = {
129129 // If there is no node, or it is nor spaces neither comment, stop:
130130 if ( ! currentNode || SC . indexOf ( currentNode . type ) === - 1 ) break ;
131131
132- if ( currentNode . is ( 'commentML ' ) || currentNode . is ( 'commentSL ' ) ) {
132+ if ( currentNode . is ( 'multilineComment ' ) || currentNode . is ( 'singlelineComment ' ) ) {
133133 sc . push ( currentNode ) ;
134134 d . push ( i + 1 ) ;
135135 continue ;
@@ -204,7 +204,7 @@ module.exports = {
204204
205205 // If there is `;` right after the declaration, save it with the
206206 // declaration and mark it for removing from parent node:
207- if ( currentNode && nextNode && nextNode . is ( 'declDelim ' ) ) {
207+ if ( currentNode && nextNode && nextNode . is ( 'declarationDelimiter ' ) ) {
208208 extendedNode . delim . push ( nextNode ) ;
209209 deleted . push ( i + 1 ) ;
210210 i ++ ;
@@ -358,7 +358,7 @@ module.exports = {
358358
359359 // Divide declarations from different groups with an empty line:
360360 if ( prevNode && currentNode . groupIndex > prevNode . groupIndex ) {
361- if ( sc0 [ 0 ] && sc0 [ 0 ] . is ( 's ' ) &&
361+ if ( sc0 [ 0 ] && sc0 [ 0 ] . is ( 'space ' ) &&
362362 ( this . syntax === 'sass' ||
363363 sc0 [ 0 ] . content . match ( / \n / g) &&
364364 sc0 [ 0 ] . content . match ( / \n / g) . length < 2 ) ) {
@@ -371,7 +371,7 @@ module.exports = {
371371 }
372372 if ( currentNode . delim . length > 0 ) {
373373 var delim = this . syntax === 'sass' ? '\n' : ';' ;
374- var declDelim = gonzales . createNode ( { type : 'declDelim ' , content : delim } ) ;
374+ var declDelim = gonzales . createNode ( { type : 'declarationDelimiter ' , content : delim } ) ;
375375 node . content . unshift ( declDelim ) ;
376376 }
377377 for ( j = 0 , nl = sc1 . length ; j < nl ; j ++ ) {
0 commit comments