code: function lastNonWhitespace () {
      var p = chars.length - 1;
  
      while (p >= 0) {
        var pp = chars[p];
        if (!isWhiteSpace(pp)) {
          return pp;
        }
        p--;
      }
  
      return '';
    }
docs: get the last parsed non-whitespace character