nl_tokens: Returns range for item to be selected in CSS before current caret ( selection ) position
pl_tokens: function getRangeForPrevItemInCSS ( rule , offset , selRange ) { var tree = require ( 'cssEditTree' ) . parse ( rule , { offset : offset } ) ; var curRange = matchedRangeForCSSProperty ( tree , selRange , true ) ; if ( ! curRange ) { // no matched property, try to match selector var range = tree . nameRange ( true ) ; if ( selRange . <mask> > range . start ) { return range ; } } return curRange ; }