nl_tokens: Search for gradient definition inside CSS value under cursor
pl_tokens: function findGradientFromPosition ( content , pos ) { var cssProp = null ; /** @type EditContainer */ var cssRule = require ( 'cssEditTree' ) . parseFromPosition ( content , pos , true ) ; if ( cssRule ) { cssProp = cssRule . itemFromPosition ( pos , true ) ; if ( ! cssProp ) { // in case user just started writing CSS property // and didn't include semicolon–try another approach cssProp = _ . find ( cssRule . list ( ) , function ( elem ) { return elem . range ( true ) . end == <mask> ; } ) ; } } return { rule : cssRule , property : cssProp } ; }