Skip to content

Commit 572b8d2

Browse files
committed
---
yaml --- r: 20758 b: refs/heads/snap-stage3 c: 4998a7d h: refs/heads/master v: v3
1 parent b45be43 commit 572b8d2

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
refs/heads/master: e430a699f2c60890d9b86069fd0c68a70ece7120
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: a413d4e502f36f25c57862d285a7f1211451f461
4+
refs/heads/snap-stage3: 4998a7dde8cb86c17263d95527c7d14c1f073043
55
refs/heads/try: ffbe0e0e00374358b789b0037bcb3a577cd218be
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105
77
refs/heads/ndm: f3868061cd7988080c30d6d5bf352a5a5fe2460b

branches/snap-stage3/doc/lib/codemirror-rust.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ CodeMirror.defineMode("rust", function() {
44
"if": "if-style", "while": "if-style", "loop": "if-style", "else": "else-style",
55
"do": "else-style", "ret": "else-style", "fail": "else-style",
66
"break": "atom", "cont": "atom", "const": "let", "resource": "fn",
7-
"let": "let", "fn": "fn", "for": "for", "alt": "alt", "iface": "iface",
7+
"let": "let", "fn": "fn", "for": "for", "alt": "alt", "trait": "trait",
88
"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",
@@ -179,7 +179,7 @@ CodeMirror.defineMode("rust", function() {
179179
if (type == "type") return cont(pushlex("stat"), tydef, endstatement, poplex, block);
180180
if (type == "enum") return stat_of(tagdef);
181181
if (type == "mod") return stat_of(mod);
182-
if (type == "iface") return stat_of(iface);
182+
if (type == "trait") return stat_of(trait);
183183
if (type == "impl") return stat_of(impl);
184184
if (type == "open-attr") return cont(pushlex("]"), commasep(expression, "]"), poplex);
185185
if (type == "ignore" || type.match(/[\]\);,]/)) return cont(block);
@@ -291,9 +291,9 @@ CodeMirror.defineMode("rust", function() {
291291
if (type == "{") return cont(pushlex("}"), block, poplex);
292292
return pass();
293293
}
294-
function iface(type) {
295-
if (type == "name") {cx.marked = "def"; return cont(iface);}
296-
if (content == "<") return cont(typarams, iface);
294+
function trait(type) {
295+
if (type == "name") {cx.marked = "def"; return cont(trait);}
296+
if (content == "<") return cont(typarams, trait);
297297
if (type == "{") return cont(pushlex("}"), block, poplex);
298298
return pass();
299299
}

0 commit comments

Comments
 (0)