nl_tokens: Handles inserting a snippet at the end of a selection
pl_tokens: function insertHandler ( string , selectionRange , snippet ) { const start = selectionRange [ 0 ] ; const end = selectionRange [ 1 ] ; const value = string . substring ( 0 , start ) + snippet + string . substring ( end , <mask> . length ) ; return { value , range : [ start , start + snippet . length ] } ; }