mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-05 16:42:58 +00:00
Treat extensionless files as Objective-J.
Reviewed by ross.
This commit is contained in:
1 parent
f9e9e51352
commit
df895b9529
1 file changed
+3
-2
@@ -35,12 +35,13 @@ function FileExecutable(/*String*/ aPath)
|
||||
FileExecutablesForPaths[aPath] = this;
|
||||
|
||||
var fileContents = rootResource.nodeAtSubPath(aPath).contents(),
|
||||
executable = NULL;
|
||||
executable = NULL,
|
||||
extension = FILE.extension(aPath);
|
||||
|
||||
if (fileContents.match(/^@STATIC;/))
|
||||
executable = decompile(fileContents, aPath);
|
||||
|
||||
else if (FILE.extension(aPath) === ".j")
|
||||
else if (extension === ".j" || extension === "")
|
||||
executable = preprocess(fileContents, aPath, OBJJ_PREPROCESSOR_DEBUG_SYMBOLS);
|
||||
|
||||
else
|
||||
|
||||
Reference in new issue
Block a user