From df895b952958afce93b2570a268a31eb2fa1903d Mon Sep 17 00:00:00 2001 From: Francisco Ryan Tolmasky I Date: Tue, 16 Feb 2010 19:30:24 -0800 Subject: [PATCH] Treat extensionless files as Objective-J. Reviewed by ross. --- Objective-J/FileExecutable.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Objective-J/FileExecutable.js b/Objective-J/FileExecutable.js index d1723368d..85019159a 100644 --- a/Objective-J/FileExecutable.js +++ b/Objective-J/FileExecutable.js @@ -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