Skip to content

Commit

Permalink
[gas mode] Default to x86 when no parser config is given
Browse files Browse the repository at this point in the history
Closes #2075
  • Loading branch information
marijnh committed Feb 11, 2014
1 parent 1850ef4 commit b19b03a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mode/gas/gas.js
Expand Up @@ -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") {
Expand Down

0 comments on commit b19b03a

Please sign in to comment.