about summary refs log tree commit diff
diff options
context:
space:
mode:
authorLindsey Kuper <lindsey@rockstargirl.org>2012-07-31 10:40:49 -0700
committerLindsey Kuper <lindsey@rockstargirl.org>2012-07-31 11:52:17 -0700
commit4998a7dde8cb86c17263d95527c7d14c1f073043 (patch)
treebe92303f8c723745774f5f9b1e98165d26ea9401
parenta413d4e502f36f25c57862d285a7f1211451f461 (diff)
downloadrust-4998a7dde8cb86c17263d95527c7d14c1f073043.tar.gz
rust-4998a7dde8cb86c17263d95527c7d14c1f073043.zip
"iface" -> "trait" in CodeMirror mode.
-rw-r--r--doc/lib/codemirror-rust.js10
1 files changed, 5 insertions, 5 deletions
diff --git a/doc/lib/codemirror-rust.js b/doc/lib/codemirror-rust.js
index 6c05ee252b1..6d4f20eeda1 100644
--- a/doc/lib/codemirror-rust.js
+++ b/doc/lib/codemirror-rust.js
@@ -4,7 +4,7 @@ CodeMirror.defineMode("rust", function() {
     "if": "if-style", "while": "if-style", "loop": "if-style", "else": "else-style",
     "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",
+    "let": "let", "fn": "fn", "for": "for", "alt": "alt", "trait": "trait",
     "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",
@@ -179,7 +179,7 @@ CodeMirror.defineMode("rust", function() {
     if (type == "type") return cont(pushlex("stat"), tydef, endstatement, poplex, block);
     if (type == "enum") return stat_of(tagdef);
     if (type == "mod") return stat_of(mod);
-    if (type == "iface") return stat_of(iface);
+    if (type == "trait") return stat_of(trait);
     if (type == "impl") return stat_of(impl);
     if (type == "open-attr") return cont(pushlex("]"), commasep(expression, "]"), poplex);
     if (type == "ignore" || type.match(/[\]\);,]/)) return cont(block);
@@ -291,9 +291,9 @@ CodeMirror.defineMode("rust", function() {
     if (type == "{") return cont(pushlex("}"), block, poplex);
     return pass();
   }
-  function iface(type) {
-    if (type == "name") {cx.marked = "def"; return cont(iface);}
-    if (content == "<") return cont(typarams, iface);
+  function trait(type) {
+    if (type == "name") {cx.marked = "def"; return cont(trait);}
+    if (content == "<") return cont(typarams, trait);
     if (type == "{") return cont(pushlex("}"), block, poplex);
     return pass();
   }