Skip to content

Commit

Permalink
Throw syntax error for # followed by anything other than pragma.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ross Boucher committed Apr 9, 2010
1 parent 47ecd40 commit 4cc7dec
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions Objective-J/Preprocessor.js
Expand Up @@ -386,11 +386,7 @@ Preprocessor.prototype.hash = function(tokens, aStringBuffer)
}
// if not a #pragma directive, it should not be processed here
else
{
tokens.previous();
CONCAT(aStringBuffer, TOKEN_HASH);
return;
}
throw new SyntaxError(this.error_message("*** Expected \"pragma\" to follow # but instead saw \"" + token + "\"."));
}

Preprocessor.prototype.implementation = function(tokens, /*StringBuffer*/ aStringBuffer)
Expand Down

0 comments on commit 4cc7dec

Please sign in to comment.