mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-13 20:17:07 +00:00
Merge branch 'master' of git@github.com:280north/cappuccino
This commit is contained in:
commit
a279d62c88
2 files changed
+17
-1
No files matched your search
@@ -738,6 +738,12 @@ CPTexturedBackgroundWindowMask
|
||||
|
||||
if (_firstResponder === self || !_firstResponder)
|
||||
[self makeFirstResponder:[self initialFirstResponder]];
|
||||
|
||||
if (!CPApp._keyWindow)
|
||||
[self makeKeyWindow];
|
||||
|
||||
if (!CPApp._mainWindow)
|
||||
[self makeMainWindow];
|
||||
}
|
||||
|
||||
/*
|
||||
|
||||
@@ -612,7 +612,7 @@ Preprocessor.prototype.method = function(/*Lexer*/ tokens, ivar_names)
|
||||
|
||||
ivar_names = ivar_names || {};
|
||||
|
||||
while((token = tokens.skip_whitespace()) && token != TOKEN_OPEN_BRACE)
|
||||
while((token = tokens.skip_whitespace()) && token !== TOKEN_OPEN_BRACE && token !== TOKEN_SEMICOLON)
|
||||
{
|
||||
if (token == TOKEN_COLON)
|
||||
{
|
||||
@@ -666,6 +666,16 @@ Preprocessor.prototype.method = function(/*Lexer*/ tokens, ivar_names)
|
||||
selector += token;
|
||||
}
|
||||
|
||||
if (token === TOKEN_SEMICOLON)
|
||||
{
|
||||
token = tokens.skip_whitespace();
|
||||
if (token !== TOKEN_OPEN_BRACE)
|
||||
{
|
||||
throw new SyntaxError(this.error_message("Invalid semi-colon in method declaration. "+
|
||||
"Semi-colons are allowed only to terminate the method signature, before the open brace."));
|
||||
}
|
||||
}
|
||||
|
||||
var index = 0,
|
||||
count = parameters.length;
|
||||
|
||||
|
||||
Reference in new issue
Block a user