mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-17 05:51:18 +00:00
Throw syntax error for # followed by anything other than pragma.
This commit is contained in:
1 parent
47ecd40c4f
commit
4cc7dec35b
1 file changed
+1
-5
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user