code: function(contents, offset) {
  			if(contents && offset) {
  				var ispunc = this._punc.indexOf(contents.charAt(offset)) > -1;
  				var pos = ispunc ? offset-1 : offset;
  				while(pos >= 0) {
  					if(this._punc.indexOf(contents.charAt(pos)) > -1) {
  						break;
  					}
  					pos--;
  				}
  				var s = pos;
  				pos = offset;
  				while(pos <= contents.length) {
  					if(this._punc.indexOf(contents.charAt(pos)) > -1) {
  						break;
  					}
  					pos++;
  				}
  				if((s === offset || (ispunc && (s === offset-1))) && pos === offset) {
  					return null;
  				}
  				else if(s === offset) {
  					return contents.substring(s, pos);
  				}
  				return contents.substring(s+1, pos);
  			}
  			return null;
  		}
docs: $NON-NLS-0$ 
  @description Returns the token or word found at the given offset
  @param {String} contents The text to search for the token
  @param {Number} offset The offset in the contents to start the search
  @returns {String} Returns the computed token from the given string and offset or <code>null</code>
  @since 8.0