Add 'class' and 'new' to codemirror-rust.js

This commit is contained in:
Brian Anderson 2012-07-06 17:18:11 -07:00
parent 57698fec6c
commit 4bb13c69d6

View File

@ -5,11 +5,11 @@ CodeMirror.defineMode("rust", function() {
"do": "else-style", "ret": "else-style", "fail": "else-style",
"break": "atom", "cont": "atom", "const": "let", "resource": "fn",
"let": "let", "fn": "fn", "for": "for", "alt": "alt", "iface": "iface",
"impl": "impl", "type": "type", "enum": "enum", "mod": "mod",
"impl": "impl", "type": "type", "enum": "enum", "class": "atom", "mod": "mod",
"as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
"claim": "op", "extern": "ignore", "unsafe": "ignore", "import": "else-style",
"export": "else-style", "copy": "op", "log": "op", "log_err": "op",
"use": "op", "bind": "op", "self": "atom"
"use": "op", "bind": "op", "self": "atom", "new": "atom"
};
var typeKeywords = function() {
var keywords = {"fn": "fn"};