default:
- if (token.type != "NAME") {
+ if ((token.type != "NAME") && (token.type != "KEYW"){
break;
}
// got identifier..
if (symbol == "eval") {
// look back one and see if we can find a comment!!!
- if (this.ts.look(-1).isDoc()) {
+ if (this.ts.look(-1).type == "COMM") {
// look for eval:var:noreplace\n
var _t = this;
this.ts.look(-1).data.replace(/eval:var:([a-z_]+)/ig, function(m, a) {
if (identifier == false) {
// BUG!find out where builtin is defined...
- if (symbol.length <= 3 && JSDOC.Scope.builtin.indexOf(symbol) < 0) {
+ if (symbol.length <= 3 && Scope.builtin.indexOf(symbol) < 0) {
// Here, we found an undeclared and un-namespaced symbol that is
// 3 characters or less in length. Declare it in the global scope.
// We don't need to declare longer symbols since they won't cause
}
break;
- //case Script.TOKsemicolon':
- //println("<br/>");
- // break;
- default:
- //println("<i>"+token.data+"</i>");
- break;
+
} // end switch
//this.timerPrint("parseScope TOK : " + token.toString());
- token = this.ts.nextT();
+ token = this.ts.next();
//if (this.ts.nextT()) break;
}