Skip to content

Commit 6e6798c

Browse files
committedMar 27, 2012
Bulk-edit mutable -> mut.
1 parent 34283ce commit 6e6798c

File tree

160 files changed

+772
-772
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

160 files changed

+772
-772
lines changed
 

‎doc/keywords.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ else export
88
f32 f64 fail false float fn for
99
i16 i32 i64 i8 if import in int
1010
let log loop
11-
mod mutable
11+
mod mut
1212
native note
1313
obj
1414
prove pure

‎doc/lib/codemirror-rust.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -218,14 +218,14 @@ CodeMirror.defineMode("rust", function() {
218218
if (content == "|") return cont(blockvars, poplex, pushlex("}", "block"), block);
219219
if (content == "||") return cont(poplex, pushlex("}", "block"), block);
220220
}
221-
if (content == "mutable" || (content.match(/^\w+$/) && cx.stream.peek() == ":"
221+
if (content == "mut" || (content.match(/^\w+$/) && cx.stream.peek() == ":"
222222
&& !cx.stream.match("::", false)))
223223
return pass(record_of(expression));
224224
return pass(block);
225225
}
226226
function record_of(comb) {
227227
function ro(type) {
228-
if (content == "mutable" || content == "with") {cx.marked = "keyword"; return cont(ro);}
228+
if (content == "mut" || content == "with") {cx.marked = "keyword"; return cont(ro);}
229229
if (content.match(/^\w*$/)) {cx.marked = "variable"; return cont(ro);}
230230
if (type == ":") return cont(comb, ro);
231231
if (type == "}") return cont();
@@ -317,7 +317,7 @@ CodeMirror.defineMode("rust", function() {
317317
}
318318
function rtype(type) {
319319
if (type == "name") {cx.marked = "variable-3"; return cont(rtypemaybeparam); }
320-
if (content == "mutable") {cx.marked = "keyword"; return cont(rtype);}
320+
if (content == "mut") {cx.marked = "keyword"; return cont(rtype);}
321321
if (type == "atom") return cont(rtypemaybeparam);
322322
if (type == "op" || type == "obj") return cont(rtype);
323323
if (type == "fn") return cont(fntype);

0 commit comments

Comments
 (0)