nl_tokens: Check if provided snippet contains only one CSS property and value .
pl_tokens: function isSingleProperty ( snippet ) { var utils = require ( 'utils' ) ; snippet = utils . trim ( snippet ) ; // check if it doesn't contain a comment and a newline if ( ~ snippet . indexOf ( '/*' ) || / [\n\r] / . test ( snippet ) ) { return false ; } // check if it's a valid snippet definition if ( ! / ^[a-z0-9\-]+\s*\: / i . test ( snippet ) ) { return false ; } snippet = require ( 'tabStops' ) . processText ( snippet , { replaceCarets : true , tabstop : function ( ) { return 'value' ; } } ) ; return snippet . split ( ':' ) . <mask> == 2 ; }