Permalink
Browse files

[gas mode] Default to x86 when no parser config is given

Closes #2075
  • Loading branch information...
1 parent 1850ef4 commit b19b03ab9d42b8eb7b69ee130999e17ef612c283 @marijnh marijnh committed Feb 11, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 mode/gas/gas.js
View
@@ -211,7 +211,7 @@ CodeMirror.defineMode("gas", function(_config, parserConfig) {
});
}
- var arch = parserConfig.architecture.toLowerCase();
+ var arch = (parserConfig.architecture || "x86").toLowerCase();
if (arch === "x86") {
x86(parserConfig);
} else if (arch === "arm" || arch === "armv6") {

0 comments on commit b19b03a

Please sign in to comment.