nl_tokens: Simple CSS commenting
pl_tokens: function toggleCSSComment ( editor ) { /** @type Range */ var range = require ( 'range' ) . <mask> ( editor . getSelectionRange ( ) ) ; var info = require ( 'editorUtils' ) . outputInfo ( editor ) ; if ( ! range . length ( ) ) { // no selection, try to get current rule /** @type CSSRule */ var rule = require ( 'cssEditTree' ) . parseFromPosition ( info . content , editor . getCaretPos ( ) ) ; if ( rule ) { var property = cssItemFromPosition ( rule , editor . getCaretPos ( ) ) ; range = property ? property . range ( true ) : require ( 'range' ) . create ( rule . nameRange ( true ) . start , rule . source ) ; } } if ( ! range . length ( ) ) { // still no selection, get current line range = require ( 'range' ) . create ( editor . getCurrentLineRange ( ) ) ; require ( 'utils' ) . narrowToNonSpace ( info . content , range ) ; } return genericCommentToggle ( editor , '/*' , '*/' , range ) ; }