Skip to content

Commit 4bb13c6

Browse files
committed
Add 'class' and 'new' to codemirror-rust.js
1 parent 57698fe commit 4bb13c6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/lib/codemirror-rust.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ CodeMirror.defineMode("rust", function() {
55
"do": "else-style", "ret": "else-style", "fail": "else-style",
66
"break": "atom", "cont": "atom", "const": "let", "resource": "fn",
77
"let": "let", "fn": "fn", "for": "for", "alt": "alt", "iface": "iface",
8-
"impl": "impl", "type": "type", "enum": "enum", "mod": "mod",
8+
"impl": "impl", "type": "type", "enum": "enum", "class": "atom", "mod": "mod",
99
"as": "op", "true": "atom", "false": "atom", "assert": "op", "check": "op",
1010
"claim": "op", "extern": "ignore", "unsafe": "ignore", "import": "else-style",
1111
"export": "else-style", "copy": "op", "log": "op", "log_err": "op",
12-
"use": "op", "bind": "op", "self": "atom"
12+
"use": "op", "bind": "op", "self": "atom", "new": "atom"
1313
};
1414
var typeKeywords = function() {
1515
var keywords = {"fn": "fn"};

0 commit comments

Comments
 (0)